Total Complexity | 6 |
Total Lines | 31 |
Duplicated Lines | 0 % |
Coverage | 63.64% |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
7 | class Links implements \JsonSerializable |
||
8 | { |
||
9 | use Makeable; |
||
10 | |||
11 | public array $data = []; |
||
12 | |||
13 | 1 | public function add(string $key, ?string $value = null): static |
|
18 | } |
||
19 | |||
20 | public function addCreditor(?string $value = null): static |
||
21 | { |
||
22 | return $this->add('creditor', $value); |
||
23 | } |
||
24 | |||
25 | public function addCustomer(?string $value = null): static |
||
26 | { |
||
27 | return $this->add('customer', $value); |
||
28 | } |
||
29 | |||
30 | 1 | public function addCustomerBankAccount(?string $value = null): static |
|
31 | { |
||
32 | 1 | return $this->add('customer_bank_account', $value); |
|
33 | } |
||
34 | |||
35 | 1 | public function jsonSerialize(): array |
|
38 | } |
||
39 | } |
||
40 |