Automattic\WooCommerce\Vendor\League\Container

Container::inflector()publicWC 1.0

Allows for manipulation of specific types on resolution.

Method of the class: Container{}

No Hooks.

Return

InflectorInterface.

Usage

$Container = new Container();
$Container->inflector( $type, $callback ) : InflectorInterface;
$type(string) (required)
-
$callback(callable|null)
-
Default: null

Container::inflector() code WC 7.1.0

public function inflector(string $type, callable $callback = null) : InflectorInterface
{
    return $this->inflectors->add($type, $callback);
}