1 | <?php |
||
7 | class OneToOneRelationship extends Relationship { |
||
8 | |||
9 | /** @var OneToOneRelationship */ |
||
10 | protected $reverse; |
||
11 | |||
12 | /** @var OneToOneRelationship */ |
||
13 | private $defined; |
||
14 | |||
15 | public function __construct(Table $model, Table $foreign, ForeignKey $fk) { |
||
20 | |||
21 | public function getType() { |
||
24 | |||
25 | public function getRelatedName() { |
||
33 | |||
34 | public function getReverseRelatedName() { |
||
42 | |||
43 | /** |
||
44 | * Return the reverse relationship |
||
45 | * |
||
46 | * @return Relationship |
||
47 | */ |
||
48 | public function getReverseRelationship() { |
||
51 | |||
52 | public function setReverseRelationship(OneToOneRelationship $relationship) { |
||
58 | |||
59 | public function getDefinedRelationship() { |
||
62 | |||
63 | public function setDefinedRelationship(OneToOneRelationship $relationship) { |
||
69 | } |