| 1 |
<?php |
| 2 |
namespace MediaWiki\Content; |
| 3 |
|
| 4 |
use MediaWiki\Page\PageIdentity; |
| 5 |
|
| 6 |
|
| 7 |
|
| 8 |
|
| 9 |
|
| 10 |
class ValidationParams { |
| 11 |
|
| 12 |
private $pageIdentity; |
| 13 |
|
| 14 |
|
| 15 |
private $flags; |
| 16 |
|
| 17 |
|
| 18 |
private $parentRevId; |
| 19 |
|
| 20 |
public function __construct( PageIdentity $pageIdentity, int $flags, int $parentRevId = -1 ) { |
| 21 |
$this->pageIdentity = $pageIdentity; |
| 22 |
$this->flags = $flags; |
| 23 |
$this->parentRevId = $parentRevId; |
| 24 |
} |
| 25 |
|
| 26 |
|
| 27 |
|
| 28 |
|
| 29 |
|
| 30 |
public function getPageIdentity(): PageIdentity { |
| 31 |
return $this->pageIdentity; |
| 32 |
} |
| 33 |
|
| 34 |
|
| 35 |
|
| 36 |
|
| 37 |
|
| 38 |
public function getFlags(): int { |
| 39 |
return $this->flags; |
| 40 |
} |
| 41 |
|
| 42 |
|
| 43 |
|
| 44 |
|
| 45 |
|
| 46 |
|
| 47 |
|
| 48 |
public function getParentRevisionId(): int { |
| 49 |
return $this->parentRevId; |
| 50 |
} |
| 51 |
} |