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