Conditions | 3 |
Paths | 3 |
Total Lines | 12 |
Code Lines | 6 |
Lines | 0 |
Ratio | 0 % |
Tests | 7 |
CRAP Score | 3 |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
26 | 42 | public function inflect($object) |
|
27 | { |
||
28 | 42 | foreach ($this->getIterator() as $inflector) { |
|
29 | 6 | $type = $inflector->getType(); |
|
30 | |||
31 | 6 | if ($object instanceof $type) { |
|
32 | 6 | $inflector->setContainer($this->getContainer()); |
|
33 | 6 | $inflector->inflect($object); |
|
34 | } |
||
35 | } |
||
36 | |||
37 | 42 | return $object; |
|
38 | } |
||
45 |