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