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