PHP 클래스 Opis\Closure\SerializableClosure

상속: implements Serializabl\Serializable
파일 보기 프로젝트 열기: opis/closure 1 사용 예제들

보호된 프로퍼티들

프로퍼티 타입 설명
$bindingSupported Indicates is closures can be bound to objects
$closure Wrapped closure
$code Used on unserializations to hold variables
$context Context of closure, used in serialization
$deserialized Unserialized closures
$isBound Indicates if closure is bound to an object
$reference Used to fix serialization in PHP 5.3
$reflector A reflection instance for closure
$scope Closure scope
$serializeThis Indicates if closure must be serialized with bounded object
$unserializations Number of unserializations in progress

공개 메소드들

메소드 설명
__construct ( Closure $closure, boolean $serializeThis = false ) Constructor
__invoke ( ) Implementation of magic method __invoke()
enterContext ( ) Increments the contex lock counter or creates a new context if none exist
exitContext ( ) Decrements the context lock counter and destroy the context when it reaches to 0
from ( Closure $closure, boolean $serializeThis = false ) : self Wraps a closure and sets the serialization context (if any)
getClosure ( ) : Closure Get the Closure object
getReflector ( ) : ReflectionClosure Get the reflector for closure
serialize ( ) : string Implementation of Serializable::serialize()
supportBinding ( ) : boolean Indicates is closures can be bound to objects
unserialize ( string $data ) Implementation of Serializable::unserialize()
unserializeData ( $data ) Helper method for unserialization

보호된 메소드들

메소드 설명
getClosurePointer ( ) : Closure Internal method used to get a reference from closure
mapByReference ( &$value ) : mixed Internal method used to map closures by reference
mapPointers ( &$value ) : mixed Internal method used to map the pointers on unserialization
unserializePHP53 ( &$data ) Internal method used to unserialize closures in PHP 5.3

메소드 상세

__construct() 공개 메소드

Constructor
public __construct ( Closure $closure, boolean $serializeThis = false )
$closure Closure Closure you want to serialize
$serializeThis boolean - Obsolete

__invoke() 공개 메소드

Implementation of magic method __invoke()
public __invoke ( )

enterContext() 공개 정적인 메소드

Increments the contex lock counter or creates a new context if none exist
public static enterContext ( )

exitContext() 공개 정적인 메소드

Decrements the context lock counter and destroy the context when it reaches to 0
public static exitContext ( )

from() 공개 정적인 메소드

Wraps a closure and sets the serialization context (if any)
public static from ( Closure $closure, boolean $serializeThis = false ) : self
$closure Closure Closure to be wrapped
$serializeThis boolean - Obsolete
리턴 self The wrapped closure

getClosure() 공개 메소드

Get the Closure object
public getClosure ( ) : Closure
리턴 Closure The wrapped closure

getClosurePointer() 보호된 메소드

Internal method used to get a reference from closure
protected getClosurePointer ( ) : Closure
리턴 Closure A pointer to closure

getReflector() 공개 메소드

Get the reflector for closure
public getReflector ( ) : ReflectionClosure
리턴 ReflectionClosure

mapByReference() 보호된 메소드

Internal method used to map closures by reference
protected mapByReference ( &$value ) : mixed
리턴 mixed The mapped values

mapPointers() 보호된 메소드

Internal method used to map the pointers on unserialization
protected mapPointers ( &$value ) : mixed
리턴 mixed Mapped pointers

serialize() 공개 메소드

Implementation of Serializable::serialize()
public serialize ( ) : string
리턴 string The serialized closure

supportBinding() 공개 정적인 메소드

Indicates is closures can be bound to objects
public static supportBinding ( ) : boolean
리턴 boolean

unserialize() 공개 메소드

Implementation of Serializable::unserialize()
public unserialize ( string $data )
$data string Serialized data

unserializeData() 공개 정적인 메소드

Helper method for unserialization
public static unserializeData ( $data )

unserializePHP53() 보호된 메소드

Internal method used to unserialize closures in PHP 5.3
protected unserializePHP53 ( &$data )

프로퍼티 상세

$bindingSupported 보호되어 있는 정적으로 프로퍼티

Indicates is closures can be bound to objects
또한 보기: Opis\Closure\SerializableClosure::supportBinding()
protected static $bindingSupported

$closure 보호되어 있는 프로퍼티

Wrapped closure
또한 보기: Opis\Closure\SerializableClosure::getClosure()
protected $closure

$code 보호되어 있는 프로퍼티

Used on unserializations to hold variables
또한 보기: Opis\Closure\SerializableClosure::unserialize()
또한 보기: Opis\Closure\SerializableClosure::getReflector()
protected $code

$context 보호되어 있는 정적으로 프로퍼티

Context of closure, used in serialization
protected static $context

$deserialized 보호되어 있는 정적으로 프로퍼티

Unserialized closures
또한 보기: Opis\Closure\SerializableClosure::unserializePHP53()
protected static $deserialized

$isBound 보호되어 있는 프로퍼티

Indicates if closure is bound to an object
protected $isBound

$reference 보호되어 있는 프로퍼티

Used to fix serialization in PHP 5.3
protected $reference

$reflector 보호되어 있는 프로퍼티

A reflection instance for closure
또한 보기: Opis\Closure\SerializableClosure::getReflector()
protected $reflector

$scope 보호되어 있는 프로퍼티

Closure scope
protected $scope

$serializeThis 보호되어 있는 프로퍼티

Indicates if closure must be serialized with bounded object
protected $serializeThis

$unserializations 보호되어 있는 정적으로 프로퍼티

Number of unserializations in progress
또한 보기: Opis\Closure\SerializableClosure::unserializePHP53()
protected static $unserializations