Page MenuHomeWickedGov Phorge

ValidationParams.php
No OneTemporary

Size
831 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 {
private PageIdentity $pageIdentity;
private int $flags;
private int $parentRevId;
public function __construct( PageIdentity $pageIdentity, int $flags, int $parentRevId = -1 ) {
$this->pageIdentity = $pageIdentity;
$this->flags = $flags;
$this->parentRevId = $parentRevId;
}
public function getPageIdentity(): PageIdentity {
return $this->pageIdentity;
}
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).
*/
public function getParentRevisionId(): int {
return $this->parentRevId;
}
}

File Metadata

Mime Type
text/x-php
Expires
Oct 4 2026, 10:39 (5 w, 6 d ago)
Storage Engine
local-disk
Storage Format
Raw Data
Storage Handle
28/df/d9906a6046320b41ea48ddb430c2
Default Alt Text
ValidationParams.php (831 B)

Event Timeline