1 | <?php |
||
8 | class ManyToManyRelationship extends Relationship { |
||
9 | |||
10 | /** @var ForeignKey */ |
||
11 | protected $lk; |
||
12 | |||
13 | /** @var CrossForeignKeys */ |
||
14 | protected $cfk; |
||
15 | |||
16 | public function __construct(Table $model, CrossForeignKeys $cfk) { |
||
30 | |||
31 | /** |
||
32 | * Returns the type of this relationship |
||
33 | * |
||
34 | * @return string |
||
35 | */ |
||
36 | public function getType() { |
||
39 | |||
40 | /** |
||
41 | * Returns the middle table |
||
42 | * |
||
43 | * @return Table |
||
44 | */ |
||
45 | public function getMiddle() { |
||
48 | |||
49 | /** |
||
50 | * Returns the cross foreign keys |
||
51 | * |
||
52 | * @return CrossForeignKeys |
||
53 | */ |
||
54 | public function getCrossForeignKeys() { |
||
57 | |||
58 | /** |
||
59 | * Returns the local key |
||
60 | * |
||
61 | * @return ForeignKey |
||
62 | */ |
||
63 | public function getLocalKey() { |
||
66 | |||
67 | public function getRelatedName() { |
||
75 | |||
76 | public function getReverseRelatedName() { |
||
84 | |||
85 | } |
||
86 |