PHP Class Symfony\Component\DependencyInjection\Reference

Author: Fabien Potencier ([email protected])
Afficher le fichier Open project: pmjones/php-framework-benchmarks Class Usage Examples

Méthodes publiques

Méthode Description
__construct ( string $id, integer $invalidBehavior = ContainerInterface::EXCEPTION_ON_INVALID_REFERENCE, boolean $strict = true ) Constructor.
__toString ( ) : string __toString.
getInvalidBehavior ( ) : integer Returns the behavior to be used when the service does not exist.
isStrict ( ) : boolean Returns true when this Reference is strict

Method Details

__construct() public méthode

Constructor.
See also: Container
public __construct ( string $id, integer $invalidBehavior = ContainerInterface::EXCEPTION_ON_INVALID_REFERENCE, boolean $strict = true )
$id string The service identifier
$invalidBehavior integer The behavior when the service does not exist
$strict boolean Sets how this reference is validated

__toString() public méthode

__toString.
public __toString ( ) : string
Résultat string The service identifier

getInvalidBehavior() public méthode

Returns the behavior to be used when the service does not exist.
public getInvalidBehavior ( ) : integer
Résultat integer

isStrict() public méthode

Returns true when this Reference is strict
public isStrict ( ) : boolean
Résultat boolean