WordPress at a glance
function is not described

Automattic\WooCommerce\Vendor\League\Container\Inflector

InflectorAggregate::add() public WC 1.0

{@inheritdoc}

{} It's a method of the class: InflectorAggregate{}

No Hooks.

Return

Null. Nothing.

Usage

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

Code of InflectorAggregate::add() WC 5.0.0

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

    return $inflector;
}