Automattic\WooCommerce\Vendor\League\Container\Definition

DefinitionAggregateInterface::add()publicWC 1.0

Add a definition to the aggregate.

Method of the class: DefinitionAggregateInterface{}

No Hooks.

Return

DefinitionInterface.

Usage

$DefinitionAggregateInterface = new DefinitionAggregateInterface();
$DefinitionAggregateInterface->add( $id, $definition, $shared ) : DefinitionInterface;
$id(string) (required)
-
$definition(mixed) (required)
-
$shared(true|false)
-
Default: false

DefinitionAggregateInterface::add() code WC 7.1.0

public function add(string $id, $definition, bool $shared = false) : DefinitionInterface;