1 | <?php |
||
11 | class EditInfo { |
||
12 | |||
13 | //minor flags |
||
14 | const MINOR = true; |
||
15 | const NOTMINOR = false; |
||
16 | //bot flags |
||
17 | const BOT = true; |
||
18 | const NOTBOT = false; |
||
19 | //maxlag flags |
||
20 | const OFFLAG = 0; |
||
21 | |||
22 | /** |
||
23 | * @var EditInfo::MINOR|self::NOTMINOR |
||
24 | */ |
||
25 | protected $minor = false; |
||
26 | |||
27 | /** |
||
28 | * @var EditInfo::BOT|self::NOTBOT |
||
29 | */ |
||
30 | protected $bot = false; |
||
31 | |||
32 | /** |
||
33 | * @var integer |
||
34 | */ |
||
35 | protected $maxlag = 0; |
||
36 | |||
37 | /** |
||
38 | * @var string |
||
39 | */ |
||
40 | protected $summary = null; |
||
41 | |||
42 | /** |
||
43 | * @param string $summary |
||
44 | * @param bool $minor |
||
45 | * @param bool $bot |
||
46 | * @param int $maxlag |
||
47 | * |
||
48 | * @throws InvalidArgumentException |
||
49 | */ |
||
50 | 9 | public function __construct( $summary = '', $minor = self::NOTMINOR, $bot = self::NOTBOT, $maxlag = self::OFFLAG ) { |
|
71 | |||
72 | /** |
||
73 | * @return EditInfo::BOT|self::NOTBOT |
||
|
|||
74 | */ |
||
75 | 5 | public function getBot() { |
|
78 | |||
79 | /** |
||
80 | * @return EditInfo::MINOR|self::NOTMINOR |
||
81 | */ |
||
82 | 5 | public function getMinor() { |
|
85 | |||
86 | /** |
||
87 | * @return integer |
||
88 | */ |
||
89 | public function getMaxlag() { |
||
92 | |||
93 | /** |
||
94 | * @return string |
||
95 | */ |
||
96 | 5 | public function getSummary() { |
|
99 | |||
100 | } |
||
101 |
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.