| Total Complexity | 4 |
| Total Lines | 30 |
| Duplicated Lines | 0 % |
| Changes | 2 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 9 | final class CheckRecipientRequest implements Arrayable |
||
| 10 | { |
||
| 11 | private $items = []; |
||
| 12 | |||
| 13 | public static function create(): self |
||
| 14 | { |
||
| 15 | return new self(); |
||
| 16 | } |
||
| 17 | |||
| 18 | public static function one(string $address, string $fullName, string $phone): self |
||
| 25 | } |
||
| 26 | |||
| 27 | public function addRecipient(string $address, string $fullName, string $phone): void |
||
| 33 | ]; |
||
| 34 | } |
||
| 35 | |||
| 36 | public function toArray(): array |
||
| 41 |