Total Complexity | 5 |
Total Lines | 39 |
Duplicated Lines | 0 % |
Changes | 2 | ||
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 | array $excludeFilters = [], |
||
28 | array $includeFilters = [], |
||
29 | ) { |
||
30 | $this->includeFilters = $includeFilters; |
||
31 | $this->excludeFilters = $excludeFilters; |
||
32 | } |
||
33 | |||
34 | public function getGroup(): string |
||
35 | { |
||
36 | return $this->group; |
||
37 | } |
||
38 | |||
39 | public function getHydratorStrategy(): string|null |
||
40 | { |
||
41 | return $this->hydratorStrategy; |
||
42 | } |
||
43 | |||
44 | public function getDescription(): string|null |
||
45 | { |
||
46 | return $this->description; |
||
47 | } |
||
48 | |||
49 | public function getType(): string|null |
||
52 | } |
||
53 | } |
||
54 |