Automattic\WooCommerce\Vendor\League\Container\Inflector

Inflector::__construct()publicWC 1.0

Construct.

Method of the class: Inflector{}

No Hooks.

Return

null. Nothing (null).

Usage

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

Inflector::__construct() code WC 8.7.0

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