| Total Complexity | 6 |
| Total Lines | 37 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 9 | #[Attribute(Attribute::TARGET_PROPERTY | Attribute::IS_REPEATABLE)] |
||
| 10 | class Association |
||
| 11 | { |
||
| 12 | /** @param string[] $excludeCriteria */ |
||
| 13 | public function __construct( |
||
| 14 | protected string $group = 'default', |
||
| 15 | protected string|null $strategy = null, |
||
| 16 | protected string|null $description = null, |
||
| 17 | protected array $excludeCriteria = [], |
||
| 18 | protected string|null $filterCriteriaEventName = null, |
||
| 19 | ) { |
||
| 20 | } |
||
| 21 | |||
| 22 | public function getGroup(): string |
||
| 23 | { |
||
| 24 | return $this->group; |
||
| 25 | } |
||
| 26 | |||
| 27 | public function getStrategy(): string|null |
||
| 28 | { |
||
| 29 | return $this->strategy; |
||
| 30 | } |
||
| 31 | |||
| 32 | public function getDescription(): string|null |
||
| 33 | { |
||
| 34 | return $this->description; |
||
| 35 | } |
||
| 36 | |||
| 37 | /** @return string[] */ |
||
| 38 | public function getExcludeCriteria(): array |
||
| 39 | { |
||
| 40 | return $this->excludeCriteria; |
||
| 41 | } |
||
| 42 | |||
| 43 | public function getFilterCriteriaEventName(): string|null |
||
| 46 | } |
||
| 47 | } |
||
| 48 |