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