Conditions | 2 |
Paths | 2 |
Total Lines | 13 |
Code Lines | 7 |
Lines | 0 |
Ratio | 0 % |
Tests | 9 |
CRAP Score | 2 |
Changes | 2 | ||
Bugs | 0 | Features | 2 |
1 | <?php |
||
16 | 4 | public function __construct($variableName) |
|
17 | { |
||
18 | 4 | if (!is_string($variableName)) { |
|
19 | 1 | throw new InvalidStringException('variableName', $variableName); |
|
20 | } |
||
21 | |||
22 | 3 | parent::__construct( |
|
23 | 3 | sprintf( |
|
24 | 3 | 'Variable "$%s" must be "not null"', |
|
25 | $variableName |
||
26 | 3 | ) |
|
27 | 3 | ); |
|
28 | } |
||
29 | } |