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