PHP Класс Instantiator\Instantiator

Автор: Marco Pivetta ([email protected])
Наследование: implements instantiator\InstantiatorInterface
Показать файл Открыть проект Примеры использования класса

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

Метод Описание
__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