Files
molenda.net/eeeeee/vendor/league/container/src/Definition/DefinitionAggregateInterface.php
T
Sebastian Molenda ab96d82fcf init
2026-05-12 21:10:38 +02:00

22 lines
817 B
PHP

<?php
declare(strict_types=1);
namespace League\Container\Definition;
use IteratorAggregate;
use League\Container\ContainerAwareInterface;
interface DefinitionAggregateInterface extends ContainerAwareInterface, IteratorAggregate
{
public function add(string $id, mixed $definition, bool $overwrite = false): DefinitionInterface;
public function addShared(string $id, mixed $definition, bool $overwrite = false): DefinitionInterface;
public function getDefinition(string $id): DefinitionInterface;
public function has(string $id): bool;
public function hasTag(string $tag): bool;
public function resolve(string $id): mixed;
public function resolveNew(string $id): mixed;
public function resolveTagged(string $tag): array;
public function resolveTaggedNew(string $tag): array;
}