Conditions | 3 |
Paths | 2 |
Total Lines | 8 |
Code Lines | 4 |
Lines | 0 |
Ratio | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 1 |
1 | <?php |
||
17 | public function __construct($telephoneNumber) |
||
18 | { |
||
19 | if (!is_string($telephoneNumber) || trim($telephoneNumber) === '') { |
||
20 | throw InvalidArgumentException::invalidType('non-empty string', 'telephoneNumber', $telephoneNumber); |
||
21 | } |
||
22 | |||
23 | $this->telephoneNumber = $telephoneNumber; |
||
24 | } |
||
25 | |||
48 |