Total Complexity | 3 |
Total Lines | 19 |
Duplicated Lines | 0 % |
Changes | 0 |
1 | <?php |
||
6 | trait BelongsToField |
||
7 | { |
||
8 | private ?string $field = null; |
||
9 | |||
10 | public function getField(): ?string |
||
13 | } |
||
14 | |||
15 | public function setField(?string $field = null): static |
||
16 | { |
||
17 | $instance = clone $this; |
||
18 | $instance->field = $field; |
||
19 | return $instance; |
||
20 | } |
||
21 | |||
22 | public function belongsToField(): bool |
||
25 | } |
||
26 | } |
||
27 |