PHP Класс Resque\Helpers\SerializableClosure

Автор: Michael Haynes ([email protected])
Наследование: implements Serializabl\Serializable
Показать файл Открыть проект

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

Свойство Тип Описание
$closure Closure The Closure instance.
$code string The code contained by the Closure.
$reflection ReflectionFunction The ReflectionFunction instance of the Closure.

Открытые методы

Метод Описание
__construct ( Closure $closure ) : void Create a new serializable Closure instance.
__invoke ( ) : mixed Invoke the contained Closure.
getClosure ( ) : Closure Get the unserialized Closure instance.
getCode ( ) : string Get the code for the Closure.
getVariables ( ) : array Get the variables used by the Closure.
serialize ( ) : string Serialize the Closure instance.
unserialize ( string $serialized ) : void Unserialize the Closure instance.

Защищенные методы

Метод Описание
getCodeFromFile ( ) : string Extract the code from the Closure's file.
getFile ( ) : SplFileObject Get an SplObjectFile object at the starting line of the Closure.
getUseClauseVariables ( ) : array Get the variables from the "use" clause.
getUseIndex ( ) : integer Get the index location of the "use" clause.

Описание методов

__construct() публичный Метод

Create a new serializable Closure instance.
public __construct ( Closure $closure ) : void
$closure Closure
Результат void

__invoke() публичный Метод

Invoke the contained Closure.
public __invoke ( ) : mixed
Результат mixed

getClosure() публичный Метод

Get the unserialized Closure instance.
public getClosure ( ) : Closure
Результат Closure

getCode() публичный Метод

Get the code for the Closure.
public getCode ( ) : string
Результат string

getCodeFromFile() защищенный Метод

Extract the code from the Closure's file.
protected getCodeFromFile ( ) : string
Результат string

getFile() защищенный Метод

Get an SplObjectFile object at the starting line of the Closure.
protected getFile ( ) : SplFileObject
Результат SplFileObject

getUseClauseVariables() защищенный Метод

Get the variables from the "use" clause.
protected getUseClauseVariables ( ) : array
Результат array

getUseIndex() защищенный Метод

Get the index location of the "use" clause.
protected getUseIndex ( ) : integer
Результат integer

getVariables() публичный Метод

Get the variables used by the Closure.
public getVariables ( ) : array
Результат array

serialize() публичный Метод

Serialize the Closure instance.
public serialize ( ) : string
Результат string

unserialize() публичный Метод

Unserialize the Closure instance.
public unserialize ( string $serialized ) : void
$serialized string
Результат void

Описание свойств

$closure защищенное свойство

The Closure instance.
protected Closure $closure
Результат Closure

$code защищенное свойство

The code contained by the Closure.
protected string $code
Результат string

$reflection защищенное свойство

The ReflectionFunction instance of the Closure.
protected ReflectionFunction $reflection
Результат ReflectionFunction