Automattic\WooCommerce\Vendor\League\Container\Inflector

InflectorAggregateInterface::add()publicWC 1.0

Add an inflector to the aggregate.

Method of the class: InflectorAggregateInterface{}

No Hooks.

Return

Inflector.

Usage

$InflectorAggregateInterface = new InflectorAggregateInterface();
$InflectorAggregateInterface->add( $type, $callback ) : Inflector;
$type(string) (required)
-
$callback(callable)
-
Default: null

InflectorAggregateInterface::add() code WC 8.7.0

public function add(string $type, callable $callback = null) : Inflector;