Conditions | 3 |
Paths | 3 |
Total Lines | 15 |
Code Lines | 8 |
Lines | 0 |
Ratio | 0 % |
Tests | 8 |
CRAP Score | 3 |
Changes | 0 |
1 | <?php declare(strict_types=1); |
||
43 | 3 | public function inflect($object) |
|
44 | { |
||
45 | 3 | foreach ($this->getIterator() as $inflector) { |
|
46 | 3 | $type = $inflector->getType(); |
|
47 | |||
48 | 3 | if (! $object instanceof $type) { |
|
49 | 3 | continue; |
|
50 | } |
||
51 | |||
52 | 3 | $inflector->setContainer($this->getContainer()); |
|
53 | 3 | $inflector->inflect($object); |
|
54 | } |
||
55 | |||
56 | 3 | return $object; |
|
57 | } |
||
58 | } |
||
59 |