Page MenuHomeWickedGov Phorge

ValidationParams.php
No OneTemporary

Size
961 B
Referenced Files
None
Subscribers
None

ValidationParams.php

<?php
namespace MediaWiki\Content;
use MediaWiki\Page\PageIdentity;
/**
* @since 1.38
* An object to hold validation params.
*/
class ValidationParams {
/** @var PageIdentity */
private $pageIdentity;
/** @var int */
private $flags;
/** @var int */
private $parentRevId;
public function __construct( PageIdentity $pageIdentity, int $flags, int $parentRevId = -1 ) {
$this->pageIdentity = $pageIdentity;
$this->flags = $flags;
$this->parentRevId = $parentRevId;
}
/**
*
* @return PageIdentity
*/
public function getPageIdentity(): PageIdentity {
return $this->pageIdentity;
}
/**
*
* @return int
*/
public function getFlags(): int {
return $this->flags;
}
/**
* @deprecated since 1.38. Born soft-deprecated as we will move usage of it
* to MultiContentSaveHook in ProofreadPage (only one place of usage).
*
* @return int
*/
public function getParentRevisionId(): int {
return $this->parentRevId;
}
}

File Metadata

Mime Type
text/x-php
Expires
Oct 7 2026, 14:33 (6 w, 4 d ago)
Storage Engine
local-disk
Storage Format
Raw Data
Storage Handle
35/77/7396f26d9bb30ac5c2cce535e58a
Default Alt Text
ValidationParams.php (961 B)

Event Timeline