Automattic\WooCommerce\Vendor\League\Container\Definition

DefinitionAggregate::__construct()publicWC 1.0

Construct.

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

No Hooks.

Return

null. Nothing.

Usage

$DefinitionAggregate = new DefinitionAggregate();
$DefinitionAggregate->__construct( $definitions );
$definitions(DefinitionInterface[])
-
Default: []

Code of DefinitionAggregate::__construct() WC 7.1.0

public function __construct(array $definitions = [])
{
    $this->definitions = array_filter($definitions, function ($definition) {
        return ($definition instanceof DefinitionInterface);
    });
}