PHP 클래스 Instantiator\Instantiator

저자: Marco Pivetta ([email protected])
상속: implements instantiator\InstantiatorInterface
파일 보기 프로젝트 열기: ocramius/instantiator 1 사용 예제들

공개 메소드들

메소드 설명
__construct ( ) Constructor.
buildFactory ( string $className ) : Closure
instantiate ( $className ) {@inheritDoc}
isSafeToClone ( ReflectionClass $class ) : boolean Checks if a class is cloneable

비공개 메소드들

메소드 설명
attemptInstantiationViaUnSerialization ( ReflectionClass $reflectionClass, string $serializedString ) : void
getCloneablesMap ( ) : LazyMap\CallbackLazyMap Builds or fetches the cloneables map
getInstantiatorsMap ( ) : LazyMap\CallbackLazyMap Builds or fetches the instantiators map
getReflectionClass ( string $className ) : ReflectionClass
getSerializationFormat ( ReflectionClass $reflectionClass ) : string Verifies if the given PHP version implements the Serializable interface serialization with an incompatible serialization format. If that's the case, use serialization marker "C" instead of "O".
hasInternalAncestors ( ReflectionClass $reflectionClass ) : boolean Verifies whether the given class is to be considered internal
isInstantiableViaReflection ( ReflectionClass $reflectionClass ) : boolean
isPhpVersionWithBrokenSerializationFormat ( ) : boolean Checks whether the current PHP runtime uses an incompatible serialization format

메소드 상세

__construct() 공개 메소드

Constructor.
public __construct ( )

buildFactory() 공개 메소드

public buildFactory ( string $className ) : Closure
$className string
리턴 Closure

instantiate() 공개 메소드

{@inheritDoc}
public instantiate ( $className )

isSafeToClone() 공개 메소드

Checks if a class is cloneable
public isSafeToClone ( ReflectionClass $class ) : boolean
$class ReflectionClass
리턴 boolean