Total Complexity | 6 |
Total Lines | 36 |
Duplicated Lines | 0 % |
Changes | 0 |
1 | <?php |
||
9 | #[Attribute(Attribute::TARGET_PROPERTY | Attribute::IS_REPEATABLE)] |
||
10 | class Field |
||
11 | { |
||
12 | public function __construct( |
||
|
|||
13 | protected string $group = 'default', |
||
14 | protected string|null $strategy = null, |
||
15 | protected string|null $description = null, |
||
16 | protected string|null $type = null, |
||
17 | private array $excludeCriteria = [], |
||
18 | ) { |
||
19 | } |
||
20 | |||
21 | public function getGroup(): string |
||
22 | { |
||
23 | return $this->group; |
||
24 | } |
||
25 | |||
26 | public function getStrategy(): string|null |
||
27 | { |
||
28 | return $this->strategy; |
||
29 | } |
||
30 | |||
31 | public function getDescription(): string|null |
||
32 | { |
||
33 | return $this->description; |
||
34 | } |
||
35 | |||
36 | public function getType(): string|null |
||
39 | } |
||
40 | |||
41 | /** @return string[] */ |
||
42 | public function getExcludeCriteria(): array |
||
45 | } |
||
46 | } |
||
47 |