PHP 클래스 Symfony\Component\DependencyInjection\Reference

저자: Fabien Potencier ([email protected])
파일 보기 프로젝트 열기: pmjones/php-framework-benchmarks 1 사용 예제들

공개 메소드들

메소드 설명
__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

메소드 상세

__construct() 공개 메소드

Constructor.
또한 보기: 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() 공개 메소드

__toString.
public __toString ( ) : string
리턴 string The service identifier

getInvalidBehavior() 공개 메소드

Returns the behavior to be used when the service does not exist.
public getInvalidBehavior ( ) : integer
리턴 integer

isStrict() 공개 메소드

Returns true when this Reference is strict
public isStrict ( ) : boolean
리턴 boolean