PHP Class bitExpert\Disco\Annotations\Bean

Afficher le fichier Open project: bitexpert/disco Class Usage Examples

Protected Properties

Свойство Type Description
$alias string
$lazy boolean
$scope integer
$singleton boolean

Méthodes publiques

Méthode Description
__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.

Méthodes protégées

Méthode Description
parseBooleanValue ( string | boolean $value ) : boolean Helper function to cast a string value to a boolean representation.

Method Details

__construct() public méthode

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

getAlias() public méthode

Returns the alias for the bean instance. Returns an empty string when no alias was set.
public getAlias ( ) : string
Résultat string

isLazy() public méthode

Returns true if the Bean should be a lazily instantiated.
public isLazy ( ) : boolean
Résultat boolean

isRequest() public méthode

Returns true if the current scope if of type Scope::REQUEST.
public isRequest ( ) : boolean
Résultat boolean

isSession() public méthode

Returns true if the current scope if of type Scope::SESSION.
public isSession ( ) : boolean
Résultat boolean

isSingleton() public méthode

Returns true if the Bean should be a singleton instance.
public isSingleton ( ) : boolean
Résultat boolean

parseBooleanValue() protected méthode

Helper function to cast a string value to a boolean representation.
protected parseBooleanValue ( string | boolean $value ) : boolean
$value string | boolean
Résultat boolean

Property Details

$alias protected_oe property

protected string $alias
Résultat string

$lazy protected_oe property

protected bool $lazy
Résultat boolean

$scope protected_oe property

protected int $scope
Résultat integer

$singleton protected_oe property

protected bool $singleton
Résultat boolean