Total Complexity | 2 |
Total Lines | 26 |
Duplicated Lines | 0 % |
Changes | 0 |
1 | <?php |
||
11 | final class InvoiceClient implements \JsonSerializable |
||
12 | { |
||
13 | private ?string $contactPhone; |
||
14 | private ?string $displayName; |
||
15 | private string $incomeType; |
||
16 | private ?string $inn; |
||
17 | |||
18 | public function __construct( |
||
19 | ?string $contactPhone = null, |
||
20 | ?string $displayName = null, |
||
21 | string $incomeType = IncomeType::INDIVIDUAL, |
||
22 | ?string $inn = null |
||
23 | ) { |
||
24 | $this->contactPhone = $contactPhone; |
||
25 | $this->displayName = $displayName; |
||
26 | $this->incomeType = $incomeType; |
||
27 | $this->inn = $inn; |
||
28 | } |
||
29 | |||
30 | public function jsonSerialize(): array |
||
37 | ]; |
||
38 | } |
||
40 |