PHP Класс bitExpert\Disco\Annotations\Bean

Показать файл Открыть проект Примеры использования класса

Защищенные свойства (Protected)

Свойство Тип Описание
$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