Conditions | 6 |
Paths | 5 |
Total Lines | 18 |
Lines | 0 |
Ratio | 0 % |
Tests | 13 |
CRAP Score | 6.0131 |
Changes | 0 |
1 | <?php |
||
50 | 9 | public function __construct( $summary = '', $minor = self::NOTMINOR, $bot = self::NOTBOT, $maxlag = self::OFFLAG ) { |
|
51 | 9 | if( !is_string( $summary ) ) { |
|
52 | 2 | throw new InvalidArgumentException( '$summary must be a string' ); |
|
53 | } |
||
54 | 7 | if( !is_bool( $minor ) ) { |
|
55 | 1 | throw new InvalidArgumentException( '$minor must be a bool' ); |
|
56 | } |
||
57 | 6 | if( !is_bool( $bot ) ) { |
|
58 | 1 | throw new InvalidArgumentException( '$bot must be a bool' ); |
|
59 | } |
||
60 | 5 | if( !is_int( $maxlag ) && !is_null( $maxlag ) ) { |
|
61 | throw new InvalidArgumentException( '$maxlag must be an integer or null' ); |
||
62 | } |
||
63 | 5 | $this->summary = $summary; |
|
64 | 5 | $this->bot = $bot; |
|
65 | 5 | $this->minor = $minor; |
|
66 | 5 | $this->maxlag = $maxlag; |
|
67 | 5 | } |
|
68 | |||
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.