Total Complexity | 2 |
Total Lines | 45 |
Duplicated Lines | 0 % |
Changes | 0 |
1 | <?php |
||
7 | abstract class Association |
||
8 | { |
||
9 | /** @var array<int, string> */ |
||
10 | protected $multArray = [ |
||
11 | AssociationStubRelationType::MANY => '*', |
||
12 | AssociationStubRelationType::ONE => '1', |
||
13 | AssociationStubRelationType::NULL_ONE => '0..1', |
||
14 | ]; |
||
15 | |||
16 | /** |
||
17 | * @var AssociationStubBase |
||
18 | */ |
||
19 | protected $first; |
||
20 | |||
21 | /** |
||
22 | * @return AssociationStubBase |
||
23 | */ |
||
24 | public function getFirst(): AssociationStubBase |
||
25 | { |
||
26 | return $this->first; |
||
27 | } |
||
28 | |||
29 | /** |
||
30 | * @param AssociationStubBase $first |
||
31 | */ |
||
32 | public function setFirst(AssociationStubBase $first): void |
||
36 | } |
||
37 | |||
38 | /** |
||
39 | * @return AssociationStubBase|AssociationStubBase[] |
||
40 | */ |
||
41 | abstract public function getLast(); |
||
42 | |||
43 | /** |
||
44 | * @return bool |
||
45 | */ |
||
46 | abstract public function isOk(): bool; |
||
47 | |||
48 | /** |
||
49 | * @return AssociationType|AssociationType[] |
||
50 | */ |
||
51 | abstract public function getAssociationType(); |
||
52 | } |
||
53 |