Total Complexity | 5 |
Total Lines | 37 |
Duplicated Lines | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
13 | #[Attribute(Attribute::TARGET_PROPERTY | Attribute::IS_REPEATABLE)] |
||
14 | class Field |
||
15 | { |
||
16 | use ExcludeFilters; |
||
1 ignored issue
–
show
|
|||
17 | |||
18 | /** |
||
19 | * @param Filters[] $excludeFilters |
||
20 | * @param Filters[] $includeFilters |
||
21 | */ |
||
22 | public function __construct( |
||
23 | protected string $group = 'default', |
||
24 | protected string|null $hydratorStrategy = null, |
||
25 | protected string|null $description = null, |
||
26 | protected string|null $type = null, |
||
27 | private array $excludeFilters = [], |
||
28 | private array $includeFilters = [], |
||
29 | ) { |
||
30 | } |
||
31 | |||
32 | public function getGroup(): string |
||
33 | { |
||
34 | return $this->group; |
||
35 | } |
||
36 | |||
37 | public function getHydratorStrategy(): string|null |
||
38 | { |
||
39 | return $this->hydratorStrategy; |
||
40 | } |
||
41 | |||
42 | public function getDescription(): string|null |
||
43 | { |
||
44 | return $this->description; |
||
45 | } |
||
46 | |||
47 | public function getType(): string|null |
||
50 | } |
||
51 | } |
||
52 |