Interfaces
(all in the Centum\Interfaces\Container
namespace)
Centum\Interfaces\Container\AliasManagerInterface
add(
class-string $class,
class-string $alias
): void
get(
class-string $class
): class-string
has(
class-string $class
): bool
remove(
class-string $class
): void
getAll(): array<class-string, class-string>
Centum\Interfaces\Container\ContainerInterface
getAliasManager(): Centum\Interfaces\Container\AliasManagerInterface
getResolverGroup(): Centum\Interfaces\Container\ResolverGroupInterface
getObjectStorage(): Centum\Interfaces\Container\ObjectStorageInterface
getServiceStorage(): Centum\Interfaces\Container\ServiceStorageInterface
get(
class-string<T> $class
): T
typehintService(
class-string<Centum\Interfaces\Container\ServiceInterface<T>> $serviceClass
): T
typehintClass(
class-string<T> $class
): T
typehintMethod(
object $class,
non-empty-string $methodName
): mixed
typehintFunction(
Closure|callable-string $function
): mixed
Centum\Interfaces\Container\ObjectStorageInterface
has(
class-string $class
): bool
get(
class-string<T> $class
): T|null
set(
class-string<T> $class,
T $object
): void
remove(
class-string $class
): void
Centum\Interfaces\Container\ParameterInterface
hasType(): bool
getType(): ?non-empty-string
isObject(): bool
hasName(): bool
getName(): ?non-empty-string
allowsNull(): bool
hasDefaultValue(): bool
getDefaultValue(): mixed
hasDeclaringClass(): bool
getDeclaringClass(): ?class-string
Centum\Interfaces\Container\ResolverGroupInterface
add(
Centum\Interfaces\Container\ResolverInterface $resolver
): void
remove(
Centum\Interfaces\Container\ResolverInterface $resolver
): void
resolve(
Centum\Interfaces\Container\ParameterInterface $parameter,
Centum\Interfaces\Container\ContainerInterface $container
): mixed
Centum\Interfaces\Container\ResolverInterface
resolve(
Centum\Interfaces\Container\ParameterInterface $parameter
): mixed
Centum\Interfaces\Container\ServiceInterface
build(): T
Centum\Interfaces\Container\ServiceStorageInterface
has(
class-string $class
): bool
get(
class-string<T> $class
): class-string<ServiceInterface<T>>|null
set(
class-string<T> $class,
class-string<Centum\Interfaces\Container\ServiceInterface<T>> $service
): void
remove(
class-string $class
): void