| Total Complexity | 6 |
| Total Lines | 43 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 13 | #[Attribute(Attribute::TARGET_CLASS | Attribute::IS_REPEATABLE)] |
||
| 14 | final class Entity |
||
| 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 bool $byValue = true, |
||
| 25 | private readonly int $limit = 0, |
||
| 26 | private readonly string|null $description = null, |
||
| 27 | private readonly string|null $typeName = null, |
||
| 28 | private readonly array $excludeFilters = [], |
||
| 29 | private readonly array $includeFilters = [], |
||
| 30 | ) { |
||
| 31 | } |
||
| 32 | |||
| 33 | public function getGroup(): string |
||
| 34 | { |
||
| 35 | return $this->group; |
||
| 36 | } |
||
| 37 | |||
| 38 | public function getByValue(): bool |
||
| 41 | } |
||
| 42 | |||
| 43 | public function getLimit(): int |
||
| 46 | } |
||
| 47 | |||
| 48 | public function getDescription(): string|null |
||
| 49 | { |
||
| 50 | return $this->description; |
||
| 51 | } |
||
| 52 | |||
| 53 | public function getTypeName(): string|null |
||
| 56 | } |
||
| 57 | } |
||
| 58 |