WordPress at a glance
function is not described

Automattic\WooCommerce\Vendor\League\Container\Definition

DefinitionAggregateInterface::add() public WC 1.0

Add a definition to the aggregate.

{} It's a 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)
-

Code of DefinitionAggregateInterface::add() WC 5.0.0

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