PHP 클래스 bitExpert\Disco\Annotations\Bean

파일 보기 프로젝트 열기: bitexpert/disco 1 사용 예제들

보호된 프로퍼티들

프로퍼티 타입 설명
$alias string
$lazy boolean
$scope integer
$singleton boolean

공개 메소드들

메소드 설명
__construct ( array $attributes = [] ) Creates a new {@link \bitExpert\Disco\Annotations\Bean}.
getAlias ( ) : string Returns the alias for the bean instance. Returns an empty string when no alias was set.
isLazy ( ) : boolean Returns true if the Bean should be a lazily instantiated.
isRequest ( ) : boolean Returns true if the current scope if of type Scope::REQUEST.
isSession ( ) : boolean Returns true if the current scope if of type Scope::SESSION.
isSingleton ( ) : boolean Returns true if the Bean should be a singleton instance.

보호된 메소드들

메소드 설명
parseBooleanValue ( string | boolean $value ) : boolean Helper function to cast a string value to a boolean representation.

메소드 상세

__construct() 공개 메소드

Creates a new {@link \bitExpert\Disco\Annotations\Bean}.
public __construct ( array $attributes = [] )
$attributes array

getAlias() 공개 메소드

Returns the alias for the bean instance. Returns an empty string when no alias was set.
public getAlias ( ) : string
리턴 string

isLazy() 공개 메소드

Returns true if the Bean should be a lazily instantiated.
public isLazy ( ) : boolean
리턴 boolean

isRequest() 공개 메소드

Returns true if the current scope if of type Scope::REQUEST.
public isRequest ( ) : boolean
리턴 boolean

isSession() 공개 메소드

Returns true if the current scope if of type Scope::SESSION.
public isSession ( ) : boolean
리턴 boolean

isSingleton() 공개 메소드

Returns true if the Bean should be a singleton instance.
public isSingleton ( ) : boolean
리턴 boolean

parseBooleanValue() 보호된 메소드

Helper function to cast a string value to a boolean representation.
protected parseBooleanValue ( string | boolean $value ) : boolean
$value string | boolean
리턴 boolean

프로퍼티 상세

$alias 보호되어 있는 프로퍼티

protected string $alias
리턴 string

$lazy 보호되어 있는 프로퍼티

protected bool $lazy
리턴 boolean

$scope 보호되어 있는 프로퍼티

protected int $scope
리턴 integer

$singleton 보호되어 있는 프로퍼티

protected bool $singleton
리턴 boolean