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