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