Automattic\WooCommerce\Vendor\League\Container\Inflector

InflectorAggregate::add()publicWC 1.0

{@inheritdoc}

Метод класса: InflectorAggregate{}

Хуков нет.

Возвращает

null. Ничего.

Использование

$InflectorAggregate = new InflectorAggregate();
$InflectorAggregate->add( $type, $callback ) : Inflector;
$type(строка) (обязательный)
-
$callback(callable)
-
По умолчанию: null

Код InflectorAggregate::add() WC 7.5.1

public function add(string $type, callable $callback = null) : Inflector
{
    $inflector          = new Inflector($type, $callback);
    $this->inflectors[] = $inflector;

    return $inflector;
}