Automattic\WooCommerce\Vendor\League\Container\Inflector

InflectorAggregate::add()publicWC 1.0

{@inheritdoc}

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

Хуков нет.

Возвращает

null. Ничего (null).

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

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

Код InflectorAggregate::add() WC 9.5.1

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

    return $inflector;
}