Conditions | 4 |
Paths | 2 |
Total Lines | 8 |
Code Lines | 5 |
Lines | 0 |
Ratio | 0 % |
Tests | 5 |
CRAP Score | 4 |
Changes | 0 |
1 | <?php |
||
53 | 7 | protected function setPriority ( $priority ) |
|
54 | { |
||
55 | 7 | if ( is_int( $priority ) && $priority > 0 && $priority <= 100 ) { |
|
56 | 6 | $this->priority = $priority; |
|
57 | 6 | return true; |
|
58 | } |
||
59 | 1 | throw new InvalidArgumentException( 'Priority must be interger and in the range from 1 to 100' ); |
|
60 | } |
||
61 | |||
86 |