Automattic\WooCommerce\Vendor\League\Container\Definition
DefinitionAggregate::__construct()
Construct.
Method of the class: DefinitionAggregate{}
No Hooks.
Return
null
. Nothing (null).
Usage
$DefinitionAggregate = new DefinitionAggregate(); $DefinitionAggregate->__construct( $definitions );
- $definitions(DefinitionInterface[])
- -
Default: []
DefinitionAggregate::__construct() DefinitionAggregate:: construct code WC 9.2.3
public function __construct(array $definitions = []) { $this->definitions = array_filter($definitions, function ($definition) { return ($definition instanceof DefinitionInterface); }); }