Automattic\WooCommerce\Vendor\League\Container\Inflector

InflectorAggregateInterface{}WC 1.0

No Hooks.

Usage

$InflectorAggregateInterface = new InflectorAggregateInterface();
// use class methods

Methods

  1. public add(string $type, callable $callback = null)
  2. public inflect($object)

InflectorAggregateInterface{} code WC 9.3.3

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);
}