Total Complexity | 3 |
Total Lines | 38 |
Duplicated Lines | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
23 | class ValidatePhoneRequest |
||
24 | { |
||
25 | /** |
||
26 | * Phone number |
||
27 | * @var string |
||
28 | */ |
||
29 | private string $number; |
||
30 | |||
31 | /** |
||
32 | * Phone number extension |
||
33 | * @var string|null |
||
34 | */ |
||
35 | private ?string $ext; |
||
36 | |||
37 | /** |
||
38 | * @param string $number |
||
39 | * @param string|null $ext |
||
40 | */ |
||
41 | public function __construct(string $number, string $ext = null) |
||
42 | { |
||
43 | $this->number = $number; |
||
44 | $this->ext = $ext; |
||
45 | } |
||
46 | |||
47 | /** |
||
48 | * @return string |
||
49 | */ |
||
50 | public function getNumber(): string |
||
53 | } |
||
54 | |||
55 | /** |
||
56 | * @return string|null |
||
57 | */ |
||
58 | public function getExt(): ?string |
||
61 | } |
||
62 | } |