Automattic\WooCommerce\Vendor\League\Container\Definition
DefinitionAggregate::has()
{@inheritdoc}
Method of the class: DefinitionAggregate{}
No Hooks.
Return
null
. Nothing (null).
Usage
$DefinitionAggregate = new DefinitionAggregate(); $DefinitionAggregate->has( $id ) : bool;
- $id(string) (required)
- -
DefinitionAggregate::has() DefinitionAggregate::has code WC 9.8.2
public function has(string $id) : bool { foreach ($this->getIterator() as $definition) { if ($id === $definition->getAlias()) { return true; } } return false; }