WordPress at a glance
function is not described

Automattic\WooCommerce\Vendor\League\Container\Definition

DefinitionAggregate::getDefinition() public WC 1.0

{@inheritdoc}

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

No Hooks.

Return

Null. Nothing.

Usage

$DefinitionAggregate = new DefinitionAggregate();
$DefinitionAggregate->getDefinition( $id ) : DefinitionInterface;
$id(string) (required)
-

Code of DefinitionAggregate::getDefinition() WC 5.0.0

<?php
public function getDefinition(string $id) : DefinitionInterface
{
    foreach ($this->getIterator() as $definition) {
        if ($id === $definition->getAlias()) {
            return $definition->setLeagueContainer($this->getLeagueContainer());
        }
    }

    throw new NotFoundException(sprintf('Alias (%s) is not being handled as a definition.', $id));
}