프로퍼티 | 타입 | 설명 | |
---|---|---|---|
$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. |
public __construct ( Closure $closure ) : void | ||
$closure | Closure | |
리턴 | void |
public getClosure ( ) : Closure | ||
리턴 | Closure |
protected getCodeFromFile ( ) : string | ||
리턴 | string |
protected getFile ( ) : SplFileObject | ||
리턴 | SplFileObject |
protected getUseClauseVariables ( ) : array | ||
리턴 | array |
protected getUseIndex ( ) : integer | ||
리턴 | integer |
public getVariables ( ) : array | ||
리턴 | array |
public unserialize ( string $serialized ) : void | ||
$serialized | string | |
리턴 | void |