Localisation updates from https://translatewiki.net.
[mediawiki.git] / includes / content / ValidationParams.php
blob1db8b02dab89b1c3698f7e4d7f5df66d53828046
1 <?php
2 namespace MediaWiki\Content;
4 use MediaWiki\Page\PageIdentity;
6 /**
7 * @since 1.38
8 * An object to hold validation params.
9 */
10 class ValidationParams {
11 /** @var PageIdentity */
12 private $pageIdentity;
14 /** @var int */
15 private $flags;
17 /** @var int */
18 private $parentRevId;
20 public function __construct( PageIdentity $pageIdentity, int $flags, int $parentRevId = -1 ) {
21 $this->pageIdentity = $pageIdentity;
22 $this->flags = $flags;
23 $this->parentRevId = $parentRevId;
26 /**
28 * @return PageIdentity
30 public function getPageIdentity(): PageIdentity {
31 return $this->pageIdentity;
34 /**
36 * @return int
38 public function getFlags(): int {
39 return $this->flags;
42 /**
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).
46 * @return int
48 public function getParentRevisionId(): int {
49 return $this->parentRevId;