Automattic\WooCommerce\Vendor\League\Container\Inflector
InflectorAggregateInterface{}
Хуков нет.
Использование
$InflectorAggregateInterface = new InflectorAggregateInterface(); // use class methods
Методы
- public add(string $type, callable $callback = null)
- public inflect($object)
Код InflectorAggregateInterface{} InflectorAggregateInterface{} WC 8.7.0
interface InflectorAggregateInterface extends ContainerAwareInterface, IteratorAggregate { /** * Add an inflector to the aggregate. * * @param string $type * @param callable $callback * * @return Inflector */ public function add(string $type, callable $callback = null) : Inflector; /** * Applies all inflectors to an object. * * @param object $object * @return object */ public function inflect($object); }