Methods |
public
|
__construct(array<string, Type> $instances = [])
|
#
|
public
|
get(string $name): Type
Finds a type by the given name.
Finds a type by the given name.
Throws
|
#
|
public
|
lookupName(Type $type): string
Finds a name for the given type.
Finds a name for the given type.
Throws
|
#
|
public
|
has(string $name): bool
Checks if there is a type of the given name.
Checks if there is a type of the given name.
|
#
|
public
|
register(string $name, Type $type): void
Registers a custom type to the type map.
Registers a custom type to the type map.
Throws
|
#
|
public
|
override(string $name, Type $type): void
Overrides an already defined type to use a different implementation.
Overrides an already defined type to use a different implementation.
Throws
|
#
|