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