PHP 클래스 Resque\Helpers\SerializableClosure

저자: Michael Haynes ([email protected])
상속: implements Serializabl\Serializable
파일 보기 프로젝트 열기: mjphaynes/php-resque

보호된 프로퍼티들

프로퍼티 타입 설명
$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