Conditions | 2 |
Paths | 2 |
Total Lines | 9 |
Code Lines | 6 |
Lines | 0 |
Ratio | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
40 | public function add(Relationship $relationship) { |
||
41 | if ($relationship instanceof ManyRelationship) { |
||
42 | $this->many->set($relationship->getForeign()->getOriginCommonName(), $relationship); |
||
43 | } else { |
||
44 | $this->one->set($relationship->getForeign()->getOriginCommonName(), $relationship); |
||
45 | } |
||
46 | |||
47 | $this->all->set($relationship->getForeign()->getOriginCommonName(), $relationship); |
||
48 | } |
||
49 | |||
99 | } |