Conditions | 2 |
Paths | 2 |
Total Lines | 10 |
Code Lines | 6 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
17 | public function updateRelation($owning, $action = 'set') |
||
18 | { |
||
19 | $rc = new \ReflectionClass($this); |
||
20 | $setter = $action . $rc->getShortName(); |
||
21 | |||
22 | $owning_rc = new \ReflectionClass($owning); |
||
23 | if (ClassAnalyzer::hasMethod($owning_rc, $setter)) { |
||
24 | $owning->$setter($this); |
||
25 | } |
||
26 | } |
||
27 | } |
||
28 |