Reference
in package
Reference represents a service reference.
Tags
Table of Contents
Properties
- $id : string
- $invalidBehavior : int
Methods
- __construct() : mixed
- __toString() : string
- getInvalidBehavior() : int
- Returns the behavior to be used when the service does not exist.
Properties
$id
private
string
$id
$invalidBehavior
private
int
$invalidBehavior
Methods
__construct()
public
__construct(string $id[, int $invalidBehavior = ContainerInterface::EXCEPTION_ON_INVALID_REFERENCE ]) : mixed
Parameters
- $id : string
- $invalidBehavior : int = ContainerInterface::EXCEPTION_ON_INVALID_REFERENCE
__toString()
public
__toString() : string
Return values
stringgetInvalidBehavior()
Returns the behavior to be used when the service does not exist.
public
getInvalidBehavior() : int