Total Complexity | 6 |
Total Lines | 43 |
Duplicated Lines | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 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 | protected int|null $limit = null, |
||
26 | ) { |
||
27 | } |
||
28 | |||
29 | public function getLimit(): int|null |
||
32 | } |
||
33 | |||
34 | public function getGroup(): string |
||
35 | { |
||
36 | return $this->group; |
||
37 | } |
||
38 | |||
39 | public function getStrategy(): string|null |
||
40 | { |
||
41 | return $this->strategy; |
||
42 | } |
||
43 | |||
44 | public function getDescription(): string|null |
||
45 | { |
||
46 | return $this->description; |
||
47 | } |
||
48 | |||
49 | public function getFilterCriteriaEventName(): string|null |
||
52 | } |
||
53 | } |
||
54 |