| Total Complexity | 5 |
| Total Lines | 30 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 26 | final class ContactInformation implements JsonSerializable, Stringable |
||
| 27 | { |
||
| 28 | private readonly string $contactInformation; |
||
| 29 | |||
| 30 | public function __construct(string $contactInformation) |
||
| 31 | { |
||
| 32 | $this->contactInformation = trim($contactInformation); |
||
| 33 | } |
||
| 34 | |||
| 35 | public function equals(ContactInformation $otherContactInformation): bool |
||
| 36 | { |
||
| 37 | return $this->contactInformation === $otherContactInformation->contactInformation; |
||
| 38 | } |
||
| 39 | |||
| 40 | /** |
||
| 41 | * @return string |
||
| 42 | */ |
||
| 43 | public function getContactInformation(): string |
||
| 44 | { |
||
| 45 | return $this->contactInformation; |
||
| 46 | } |
||
| 47 | |||
| 48 | public function jsonSerialize(): string |
||
| 51 | } |
||
| 52 | |||
| 53 | public function __toString(): string |
||
| 56 | } |
||
| 57 | } |
||
| 58 |