1 | <?php |
||
12 | class EditInfo { |
||
13 | |||
14 | // minor flags |
||
15 | public const MINOR = true; |
||
16 | public const NOTMINOR = false; |
||
17 | // bot flags |
||
18 | public const BOT = true; |
||
19 | public const NOTBOT = false; |
||
20 | // maxlag flags |
||
21 | public const OFFLAG = null; |
||
22 | |||
23 | /** |
||
24 | * @var EditInfo::MINOR|self::NOTMINOR |
||
25 | */ |
||
26 | protected $minor = false; |
||
27 | |||
28 | /** |
||
29 | * @var EditInfo::BOT|self::NOTBOT |
||
30 | */ |
||
31 | protected $bot = false; |
||
32 | |||
33 | /** |
||
34 | * @var int |
||
35 | */ |
||
36 | protected $maxlag = null; |
||
37 | |||
38 | /** |
||
39 | * @var string |
||
40 | */ |
||
41 | protected $summary = null; |
||
42 | |||
43 | /** |
||
44 | * @param string $summary |
||
45 | * @param bool $minor |
||
46 | * @param bool $bot |
||
47 | * @param int $maxlag |
||
48 | * |
||
49 | * @throws InvalidArgumentException |
||
50 | 9 | */ |
|
51 | 9 | public function __construct( $summary = '', $minor = self::NOTMINOR, $bot = self::NOTBOT, $maxlag = self::OFFLAG ) { |
|
69 | |||
70 | /** |
||
71 | * @return EditInfo::BOT|self::NOTBOT |
||
|
|||
72 | 5 | */ |
|
73 | 5 | public function getBot() { |
|
76 | |||
77 | /** |
||
78 | * @return EditInfo::MINOR|self::NOTMINOR |
||
79 | 5 | */ |
|
80 | 5 | public function getMinor() { |
|
83 | |||
84 | /** |
||
85 | * @return int|null |
||
86 | */ |
||
87 | public function getMaxlag() { |
||
90 | |||
91 | /** |
||
92 | * @return string |
||
93 | 5 | */ |
|
94 | 5 | public function getSummary() { |
|
97 | |||
98 | } |
||
99 |
This check marks PHPDoc comments that could not be parsed by our parser. To see which comment annotations we can parse, please refer to our documentation on supported doc-types.