Total Complexity | 6 |
Total Lines | 35 |
Duplicated Lines | 0 % |
Coverage | 100% |
Changes | 0 |
1 | <?php |
||
19 | final class CheckedRecipient implements Arrayable |
||
20 | { |
||
21 | use DataAware; |
||
22 | |||
23 | public const FRAUD = 'fraud'; |
||
24 | public const RELIABLE = 'reliable'; |
||
25 | |||
26 | 1 | public function getAddress(): string |
|
27 | { |
||
28 | 1 | return $this->get('raw-address'); |
|
29 | } |
||
30 | |||
31 | 1 | public function getPhone(): string |
|
32 | { |
||
33 | 1 | return $this->get('raw-telephone'); |
|
34 | } |
||
35 | |||
36 | 1 | public function getFullName(): string |
|
37 | { |
||
38 | 1 | return $this->get('raw-full-name'); |
|
39 | } |
||
40 | |||
41 | 1 | public function getResult(): string |
|
42 | { |
||
43 | 1 | return $this->get('unreliability'); |
|
44 | } |
||
45 | |||
46 | 1 | public function isFraud(): bool |
|
47 | { |
||
48 | 1 | return $this->getResult() === self::FRAUD; |
|
49 | } |
||
50 | |||
51 | 1 | public function isReliable(): bool |
|
54 | } |
||
55 | } |
||
56 |