Automattic\WooCommerce\Vendor\League\Container\Inflector

Inflector::__constructpublicWC 1.0

Construct.

Method of the class: Inflector{}

No Hooks.

Returns

null. Nothing (null).

Usage

$Inflector = new Inflector();
$Inflector->__construct( $type, ?callable $callback );
$type(string) (required)
.
?callable $callback
.
Default: null

Inflector::__construct() code WC 9.9.5

public function __construct(string $type, ?callable $callback = null)
{
    $this->type     = $type;
    $this->callback = $callback;
}