| 1 | <?php declare(strict_types=1); | ||
| 8 | class InflectorAggregate implements InflectorAggregateInterface | ||
| 9 | { | ||
| 10 | use ContainerAwareTrait; | ||
| 11 | |||
| 12 | /** | ||
| 13 | * @var \League\Container\Inflector[] | ||
| 14 | */ | ||
| 15 | protected $inflectors = []; | ||
| 16 | |||
| 17 | /** | ||
| 18 |      * {@inheritdoc} | ||
| 19 | */ | ||
| 20 | 9 | public function add(string $type, callable $callback = null): Inflector | |
| 27 | |||
| 28 | /** | ||
| 29 |      * {@inheritdoc} | ||
| 30 | */ | ||
| 31 | 6 | public function getIterator(): Generator | |
| 39 | |||
| 40 | /** | ||
| 41 |      * {@inheritdoc} | ||
| 42 | */ | ||
| 43 | 3 | public function inflect($object) | |
| 58 | } | ||
| 59 |