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 = null; |
||
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 = null; |
||
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 ) { |
|
68 | |||
69 | /** |
||
70 | * @return EditInfo::BOT|self::NOTBOT |
||
|
|||
71 | */ |
||
72 | 5 | public function getBot() { |
|
75 | |||
76 | /** |
||
77 | * @return EditInfo::MINOR|self::NOTMINOR |
||
78 | */ |
||
79 | 5 | public function getMinor() { |
|
82 | |||
83 | /** |
||
84 | * @return integer|null |
||
85 | */ |
||
86 | public function getMaxlag() { |
||
89 | |||
90 | /** |
||
91 | * @return string |
||
92 | */ |
||
93 | 5 | public function getSummary() { |
|
96 | |||
97 | } |
||
98 |
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.