blob: 1db8b02dab89b1c3698f7e4d7f5df66d53828046 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
|
<?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;
}
}
|