| Total Complexity | 5 |
| Total Lines | 30 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 23 | final class ShowRaaContactInformationOption implements JsonSerializable |
||
| 24 | { |
||
|
|
|||
| 25 | |||
| 26 | |||
| 27 | public static function getDefault(): self |
||
| 28 | { |
||
| 29 | return new self(true); |
||
| 30 | } |
||
| 31 | |||
| 32 | public function __construct( |
||
| 33 | private readonly bool $showRaaContactInformationOption |
||
| 34 | ) { |
||
| 35 | } |
||
| 36 | |||
| 37 | public function equals(ShowRaaContactInformationOption $other): bool |
||
| 38 | { |
||
| 39 | return $this->showRaaContactInformationOption === $other->showRaaContactInformationOption; |
||
| 40 | } |
||
| 41 | |||
| 42 | /** |
||
| 43 | * @return boolean |
||
| 44 | */ |
||
| 45 | public function isEnabled(): bool |
||
| 48 | } |
||
| 49 | |||
| 50 | public function jsonSerialize(): bool |
||
| 53 | } |
||
| 54 | } |
||
| 55 |