class TypedReference extends Reference

Represents a PHP type-hinted service reference.

Methods

__construct(string $id, string $type, string $requiringClass = '', int $invalidBehavior = ContainerInterface::EXCEPTION_ON_INVALID_REFERENCE)

No description

string
__toString()

No description

from Reference
int
getInvalidBehavior()

Returns the behavior to be used when the service does not exist.

from Reference
getType()

No description

getRequiringClass()

No description

canBeAutoregistered()

No description

Details

at line 30
__construct(string $id, string $type, string $requiringClass = '', int $invalidBehavior = ContainerInterface::EXCEPTION_ON_INVALID_REFERENCE)

Parameters

string $id The service identifier
string $type The PHP type of the identified service
string $requiringClass The class of the service that requires the referenced type
int $invalidBehavior The behavior when the service does not exist

in Reference at line 39
string __toString()

Return Value

string The service identifier

in Reference at line 49
int getInvalidBehavior()

Returns the behavior to be used when the service does not exist.

Return Value

int

at line 37
getType()

at line 42
getRequiringClass()

at line 47
canBeAutoregistered()