8266bc4e375186a00ab1d9f81b4d9ca0d17e34f3
[yaffs-website] / vendor / league / container / src / Inflector / InflectorAggregateInterface.php
1 <?php
2
3 namespace League\Container\Inflector;
4
5 use League\Container\ImmutableContainerAwareInterface;
6
7 interface InflectorAggregateInterface extends ImmutableContainerAwareInterface
8 {
9     /**
10      * Add an inflector to the aggregate.
11      *
12      * @param  string   $type
13      * @param  callable $callback
14      * @return \League\Container\Inflector\Inflector
15      */
16     public function add($type, callable $callback = null);
17
18     /**
19      * Applies all inflectors to an object.
20      *
21      * @param  object $object
22      * @return object
23      */
24     public function inflect($object);
25 }