Automattic\WooCommerce\Vendor\League\Container\Inflector
InflectorAggregate::add()
{@inheritdoc}
Method of the class: InflectorAggregate{}
No Hooks.
Return
null
. Nothing (null).
Usage
$InflectorAggregate = new InflectorAggregate(); $InflectorAggregate->add( $type, $callback ) : Inflector;
- $type(string) (required)
- -
- $callback(callable)
- -
Default: null
InflectorAggregate::add() InflectorAggregate::add code WC 9.4.2
public function add(string $type, callable $callback = null) : Inflector { $inflector = new Inflector($type, $callback); $this->inflectors[] = $inflector; return $inflector; }