Total Complexity | 5 |
Total Lines | 34 |
Duplicated Lines | 0 % |
Coverage | 80% |
Changes | 1 | ||
Bugs | 0 | Features | 1 |
1 | <?php |
||
20 | class Contact |
||
21 | { |
||
22 | |||
23 | /** |
||
24 | * Contact type. |
||
25 | * Emali, skype, telegram e t.c. |
||
26 | * @var string |
||
27 | */ |
||
28 | private $type; |
||
29 | |||
30 | /** |
||
31 | * @var string |
||
32 | */ |
||
33 | private $value; |
||
34 | |||
35 | 4 | public function __construct(string $type, string $value) |
|
39 | 4 | } |
|
40 | |||
41 | 2 | public function getType(): string |
|
44 | } |
||
45 | |||
46 | 2 | public function getValue(): string |
|
49 | } |
||
50 | |||
51 | public function isEqualTo(self $contact) |
||
57 |