Total Complexity | 6 |
Total Lines | 43 |
Duplicated Lines | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
10 | class PhoneValue |
||
11 | { |
||
12 | private $phone; |
||
13 | |||
14 | /** |
||
15 | * PhoneValue constructor. |
||
16 | * @param string $phone |
||
17 | * @throws LongPhoneException |
||
18 | * @throws ShortPhoneException |
||
19 | */ |
||
20 | public function __construct(string $phone) |
||
21 | { |
||
22 | $this->setPhone($phone); |
||
23 | } |
||
24 | |||
25 | /** |
||
26 | * @return mixed |
||
27 | */ |
||
28 | public function getPhone() |
||
31 | } |
||
32 | |||
33 | /** |
||
34 | * @param string $phone |
||
35 | * @throws LongPhoneException |
||
36 | * @throws ShortPhoneException |
||
37 | */ |
||
38 | private function setPhone(string $phone): void |
||
55 | } |