2 namespace MediaWiki\Content
;
4 use MediaWiki\Page\PageIdentity
;
8 * An object to hold validation params.
10 class ValidationParams
{
11 /** @var PageIdentity */
12 private $pageIdentity;
20 public function __construct( PageIdentity
$pageIdentity, int $flags, int $parentRevId = -1 ) {
21 $this->pageIdentity
= $pageIdentity;
22 $this->flags
= $flags;
23 $this->parentRevId
= $parentRevId;
28 * @return PageIdentity
30 public function getPageIdentity(): PageIdentity
{
31 return $this->pageIdentity
;
38 public function getFlags(): int {
43 * @deprecated since 1.38. Born soft-deprecated as we will move usage of it
44 * to MultiContentSaveHook in ProofreadPage (only one place of usage).
48 public function getParentRevisionId(): int {
49 return $this->parentRevId
;