Automattic\WooCommerce\Vendor\League\Container\Definition

DefinitionAggregate::__construct()publicWC 1.0

Construct.

Метод класса: DefinitionAggregate{}

Хуков нет.

Возвращает

null. Ничего (null).

Использование

$DefinitionAggregate = new DefinitionAggregate();
$DefinitionAggregate->__construct( $definitions );
$definitions(DefinitionInterface[])
-
По умолчанию: []

Код DefinitionAggregate::__construct() WC 9.4.2

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