Automattic\WooCommerce\Vendor\League\Container\Inflector
InflectorAggregateInterface::add()
Add an inflector to the aggregate.
Method of the class: InflectorAggregateInterface{}
No Hooks.
Return
Inflector
.
Usage
$InflectorAggregateInterface = new InflectorAggregateInterface(); $InflectorAggregateInterface->add( $type, ?callable $callback ) : Inflector;
- $type(string) (required)
- -
- ?callable $callback **
- -
Default: null
InflectorAggregateInterface::add() InflectorAggregateInterface::add code WC 9.7.1
public function add(string $type, ?callable $callback = null) : Inflector;