| Conditions | 3 |
| Paths | 3 |
| Total Lines | 15 |
| Code Lines | 8 |
| 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 | $type = $inflector->getType(); |
||
| 47 | |||
| 48 | 3 | if (! $object instanceof $type) { |
|
| 49 | 32 | continue; |
|
| 50 | } |
||
| 51 | 48 | ||
| 52 | $inflector->setContainer($this->getContainer()); |
||
| 53 | $inflector->inflect($object); |
||
| 54 | } |
||
| 55 | |||
| 56 | return $object; |
||
| 57 | } |
||
| 58 | } |
||
| 59 |