Better PHP Documentation
opinionated
Open main menu
Get Started
Documentation
Community
Training
Better PHP Documentation
Close menu
Get Started
Documentation
Community
Training
Log in
Change language:
English
German
Spanish
French
Italian
Japanese
Brazilian Portuguese
Russian
Turkish
Ukrainian
Chinese (Simplified)
Other
Reflection
ΠΡΡΡΠΏ
ΠΡΠΈΠΊΠ»Π°Π΄ΠΈ
Extending
Reflection
β The Reflection class
Reflection::export
β Exports
Reflection::getModifierNames
β Gets modifier names
ReflectionClass
β The ReflectionClass class
ReflectionClass::__construct
β Constructs a ReflectionClass
ReflectionClass::export
β Exports a class
ReflectionClass::getAttributes
β Gets Attributes
ReflectionClass::getConstant
β Gets defined constant
ReflectionClass::getConstants
β Gets constants
ReflectionClass::getConstructor
β Gets the constructor of the class
ReflectionClass::getDefaultProperties
β Gets default properties
ReflectionClass::getDocComment
β Gets doc comments
ReflectionClass::getEndLine
β Gets end line
ReflectionClass::getExtension
β Gets a ReflectionExtension object for the extension which defined the class
ReflectionClass::getExtensionName
β Gets the name of the extension which defined the class
ReflectionClass::getFileName
β Gets the filename of the file in which the class has been defined
ReflectionClass::getInterfaceNames
β Gets the interface names
ReflectionClass::getInterfaces
β Gets the interfaces
ReflectionClass::getLazyInitializer
β Gets lazy initializer
ReflectionClass::getMethod
β Gets a ReflectionMethod for a class method
ReflectionClass::getMethods
β Gets an array of methods
ReflectionClass::getModifiers
β Gets the class modifiers
ReflectionClass::getName
β Gets class name
ReflectionClass::getNamespaceName
β Gets namespace name
ReflectionClass::getParentClass
β Gets parent class
ReflectionClass::getProperties
β Gets properties
ReflectionClass::getProperty
β Gets a ReflectionProperty for a class's property
ReflectionClass::getReflectionConstant
β Gets a ReflectionClassConstant for a class's constant
ReflectionClass::getReflectionConstants
β Gets class constants
ReflectionClass::getShortName
β Gets short name
ReflectionClass::getStartLine
β Gets starting line number
ReflectionClass::getStaticProperties
β Gets static properties
ReflectionClass::getStaticPropertyValue
β Gets static property value
ReflectionClass::getTraitAliases
β Returns an array of trait aliases
ReflectionClass::getTraitNames
β Returns an array of names of traits used by this class
ReflectionClass::getTraits
β Returns an array of traits used by this class
ReflectionClass::hasConstant
β Checks if constant is defined
ReflectionClass::hasMethod
β Checks if method is defined
ReflectionClass::hasProperty
β Checks if property is defined
ReflectionClass::implementsInterface
β Implements interface
ReflectionClass::initializeLazyObject
β Forces initialization of a lazy object
ReflectionClass::inNamespace
β Checks if in namespace
ReflectionClass::isAbstract
β Checks if class is abstract
ReflectionClass::isAnonymous
β Checks if class is anonymous
ReflectionClass::isCloneable
β Returns whether this class is cloneable
ReflectionClass::isEnum
β Returns whether this is an enum
ReflectionClass::isFinal
β Checks if class is final
ReflectionClass::isInstance
β Checks class for instance
ReflectionClass::isInstantiable
β Checks if the class is instantiable
ReflectionClass::isInterface
β Checks if the class is an interface
ReflectionClass::isInternal
β Checks if class is defined internally by an extension, or the core
ReflectionClass::isIterable
β Check whether this class is iterable
ReflectionClass::isIterateable
β ΠΡΠ΅Π²Π΄ΠΎΠ½ΡΠΌ ReflectionClass::isIterable
ReflectionClass::isReadOnly
β Checks if class is readonly
ReflectionClass::isSubclassOf
β Checks if a subclass
ReflectionClass::isTrait
β Returns whether this is a trait
ReflectionClass::isUninitializedLazyObject
β Checks if an object is lazy and uninitialized
ReflectionClass::isUserDefined
β Checks if user defined
ReflectionClass::markLazyObjectAsInitialized
β Marks a lazy object as initialized without calling the initializer or factory
ReflectionClass::newInstance
β Creates a new class instance from given arguments
ReflectionClass::newInstanceArgs
β Creates a new class instance from given arguments
ReflectionClass::newInstanceWithoutConstructor
β Creates a new class instance without invoking the constructor
ReflectionClass::newLazyGhost
β Creates a new lazy ghost instance
ReflectionClass::newLazyProxy
β Creates a new lazy proxy instance
ReflectionClass::resetAsLazyGhost
β Resets an object and marks it as lazy
ReflectionClass::resetAsLazyProxy
β Resets an object and marks it as lazy
ReflectionClass::setStaticPropertyValue
β Sets public static property value
ReflectionClass::__toString
β Returns the string representation of the ReflectionClass object
ReflectionClassConstant
β The ReflectionClassConstant class
ReflectionClassConstant::__construct
β Constructs a ReflectionClassConstant
ReflectionClassConstant::export
β Export
ReflectionClassConstant::getAttributes
β Gets Attributes
ReflectionClassConstant::getDeclaringClass
β Gets declaring class
ReflectionClassConstant::getDocComment
β Gets doc comments
ReflectionClassConstant::getModifiers
β Gets the class constant modifiers
ReflectionClassConstant::getName
β Get name of the constant
ReflectionClassConstant::getType
β Gets a class constant's type
ReflectionClassConstant::getValue
β Gets value
ReflectionClassConstant::hasType
β Checks if class constant has a type
ReflectionClassConstant::isDeprecated
β Checks if deprecated
ReflectionClassConstant::isEnumCase
β Checks if class constant is an Enum case
ReflectionClassConstant::isFinal
β Checks if class constant is final
ReflectionClassConstant::isPrivate
β Checks if class constant is private
ReflectionClassConstant::isProtected
β Checks if class constant is protected
ReflectionClassConstant::isPublic
β Checks if class constant is public
ReflectionClassConstant::__toString
β Returns the string representation of the ReflectionClassConstant object
ReflectionConstant
β The ReflectionConstant class
ReflectionConstant::__construct
β Constructs a ReflectionConstant
ReflectionConstant::getExtension
β Gets ReflectionExtension of the defining extension
ReflectionConstant::getExtensionName
β Gets name of the defining extension
ReflectionConstant::getFileName
β Gets name of the defining file
ReflectionConstant::getName
β Gets name
ReflectionConstant::getNamespaceName
β Gets namespace name
ReflectionConstant::getShortName
β Gets short name
ReflectionConstant::getValue
β Gets value
ReflectionConstant::isDeprecated
β Checks if deprecated
ReflectionConstant::__toString
β Returns string representation
ReflectionEnum
β The ReflectionEnum class
ReflectionEnum::__construct
β Instantiates a ReflectionEnum object
ReflectionEnum::getBackingType
β Gets the backing type of an Enum, if any
ReflectionEnum::getCase
β Returns a specific case of an Enum
ReflectionEnum::getCases
β Returns a list of all cases on an Enum
ReflectionEnum::hasCase
β Checks for a case on an Enum
ReflectionEnum::isBacked
β Determines if an Enum is a Backed Enum
ReflectionEnumUnitCase
β The ReflectionEnumUnitCase class
ReflectionEnumUnitCase::__construct
β Instantiates a ReflectionEnumUnitCase object
ReflectionEnumUnitCase::getEnum
β Gets the reflection of the enum of this case
ReflectionEnumUnitCase::getValue
β Gets the enum case object described by this reflection object
ReflectionEnumBackedCase
β The ReflectionEnumBackedCase class
ReflectionEnumBackedCase::__construct
β Instantiates a ReflectionEnumBackedCase object
ReflectionEnumBackedCase::getBackingValue
β Gets the scalar value backing this Enum case
ReflectionZendExtension
β The ReflectionZendExtension class
ReflectionZendExtension::__clone
β Clone handler
ReflectionZendExtension::__construct
β Constructs a ReflectionZendExtension object
ReflectionZendExtension::export
β Export
ReflectionZendExtension::getAuthor
β Gets author
ReflectionZendExtension::getCopyright
β Gets copyright
ReflectionZendExtension::getName
β Gets name
ReflectionZendExtension::getURL
β Gets URL
ReflectionZendExtension::getVersion
β Gets version
ReflectionZendExtension::__toString
β To string handler
ReflectionExtension
β The ReflectionExtension class
ReflectionExtension::__clone
β Clones
ReflectionExtension::__construct
β Constructs a ReflectionExtension
ReflectionExtension::export
β Export
ReflectionExtension::getClasses
β Gets classes
ReflectionExtension::getClassNames
β Gets class names
ReflectionExtension::getConstants
β Gets constants
ReflectionExtension::getDependencies
β Gets dependencies
ReflectionExtension::getFunctions
β Gets extension functions
ReflectionExtension::getINIEntries
β Gets extension ini entries
ReflectionExtension::getName
β Gets extension name
ReflectionExtension::getVersion
β Gets extension version
ReflectionExtension::info
β Print extension info
ReflectionExtension::isPersistent
β Returns whether this extension is persistent
ReflectionExtension::isTemporary
β Returns whether this extension is temporary
ReflectionExtension::__toString
β To string
ReflectionFunction
β The ReflectionFunction class
ReflectionFunction::__construct
β Constructs a ReflectionFunction object
ReflectionFunction::export
β Exports function
ReflectionFunction::getClosure
β Returns a dynamically created closure for the function
ReflectionFunction::invoke
β Invokes function
ReflectionFunction::invokeArgs
β Invokes function args
ReflectionFunction::isAnonymous
β Checks if a function is anonymous
ReflectionFunction::isDisabled
β Checks if function is disabled
ReflectionFunction::__toString
β Returns the string representation of the ReflectionFunction object
ReflectionFunctionAbstract
β The ReflectionFunctionAbstract class
ReflectionFunctionAbstract::__clone
β Clones function
ReflectionFunctionAbstract::getAttributes
β Gets Attributes
ReflectionFunctionAbstract::getClosureCalledClass
β Returns the class corresponding to static:: inside a closure
ReflectionFunctionAbstract::getClosureScopeClass
β Returns the class corresponding to the scope inside a closure
ReflectionFunctionAbstract::getClosureThis
β Returns the object which corresponds to $this inside a closure
ReflectionFunctionAbstract::getClosureUsedVariables
β Returns an array of the used variables in the Closure
ReflectionFunctionAbstract::getDocComment
β Gets doc comment
ReflectionFunctionAbstract::getEndLine
β Gets end line number
ReflectionFunctionAbstract::getExtension
β Gets extension info
ReflectionFunctionAbstract::getExtensionName
β Gets extension name
ReflectionFunctionAbstract::getFileName
β Gets file name
ReflectionFunctionAbstract::getName
β Gets function name
ReflectionFunctionAbstract::getNamespaceName
β Gets namespace name
ReflectionFunctionAbstract::getNumberOfParameters
β Gets number of parameters
ReflectionFunctionAbstract::getNumberOfRequiredParameters
β Gets number of required parameters
ReflectionFunctionAbstract::getParameters
β Gets parameters
ReflectionFunctionAbstract::getReturnType
β Gets the specified return type of a function
ReflectionFunctionAbstract::getShortName
β Gets function short name
ReflectionFunctionAbstract::getStartLine
β Gets starting line number
ReflectionFunctionAbstract::getStaticVariables
β Gets static variables
ReflectionFunctionAbstract::getTentativeReturnType
β Returns the tentative return type associated with the function
ReflectionFunctionAbstract::hasReturnType
β Checks if the function has a specified return type
ReflectionFunctionAbstract::hasTentativeReturnType
β Returns whether the function has a tentative return type
ReflectionFunctionAbstract::inNamespace
β Checks if function in namespace
ReflectionFunctionAbstract::isClosure
β Checks if closure
ReflectionFunctionAbstract::isDeprecated
β Checks if deprecated
ReflectionFunctionAbstract::isGenerator
β Returns whether this function is a generator
ReflectionFunctionAbstract::isInternal
β Checks if is internal
ReflectionFunctionAbstract::isStatic
β Checks if the function is static
ReflectionFunctionAbstract::isUserDefined
β Checks if user defined
ReflectionFunctionAbstract::isVariadic
β Checks if the function is variadic
ReflectionFunctionAbstract::returnsReference
β Checks if returns reference
ReflectionFunctionAbstract::__toString
β Returns the string representation of the ReflectionFunctionAbstract object
ReflectionMethod
β The ReflectionMethod class
ReflectionMethod::__construct
β Constructs a ReflectionMethod
ReflectionMethod::createFromMethodName
β Creates a new ReflectionMethod
ReflectionMethod::export
β Export a reflection method
ReflectionMethod::getClosure
β Returns a dynamically created closure for the method
ReflectionMethod::getDeclaringClass
β Gets declaring class for the reflected method
ReflectionMethod::getModifiers
β Gets the method modifiers
ReflectionMethod::getPrototype
β Gets the method prototype (if there is one)
ReflectionMethod::hasPrototype
β Returns whether a method has a prototype
ReflectionMethod::invoke
β Invoke
ReflectionMethod::invokeArgs
β Invoke args
ReflectionMethod::isAbstract
β Checks if method is abstract
ReflectionMethod::isConstructor
β Checks if method is a constructor
ReflectionMethod::isDestructor
β Checks if method is a destructor
ReflectionMethod::isFinal
β Checks if method is final
ReflectionMethod::isPrivate
β Checks if method is private
ReflectionMethod::isProtected
β Checks if method is protected
ReflectionMethod::isPublic
β Checks if method is public
ReflectionMethod::setAccessible
β Set method accessibility
ReflectionMethod::__toString
β Returns the string representation of the Reflection method object
ReflectionNamedType
β The ReflectionNamedType class
ReflectionNamedType::getName
β Get the name of the type as a string
ReflectionNamedType::isBuiltin
β Checks if it is a built-in type
ReflectionObject
β The ReflectionObject class
ReflectionObject::__construct
β Constructs a ReflectionObject
ReflectionObject::export
β Export
ReflectionParameter
β The ReflectionParameter class
ReflectionParameter::allowsNull
β Checks if null is allowed
ReflectionParameter::canBePassedByValue
β Returns whether this parameter can be passed by value
ReflectionParameter::__clone
β Clone
ReflectionParameter::__construct
β Construct
ReflectionParameter::export
β Exports
ReflectionParameter::getAttributes
β Gets Attributes
ReflectionParameter::getClass
β Get a ReflectionClass object for the parameter being reflected or null
ReflectionParameter::getDeclaringClass
β Gets declaring class
ReflectionParameter::getDeclaringFunction
β Gets declaring function
ReflectionParameter::getDefaultValue
β Gets default parameter value
ReflectionParameter::getDefaultValueConstantName
β Returns the default value's constant name if default value is constant or null
ReflectionParameter::getName
β Gets parameter name
ReflectionParameter::getPosition
β Gets parameter position
ReflectionParameter::getType
β Gets a parameter's type
ReflectionParameter::hasType
β Checks if parameter has a type
ReflectionParameter::isArray
β Checks if parameter expects an array
ReflectionParameter::isCallable
β Returns whether parameter MUST be callable
ReflectionParameter::isDefaultValueAvailable
β Checks if a default value is available
ReflectionParameter::isDefaultValueConstant
β Returns whether the default value of this parameter is a constant
ReflectionParameter::isOptional
β Checks if optional
ReflectionParameter::isPassedByReference
β Checks if passed by reference
ReflectionParameter::isPromoted
β Checks if a parameter is promoted to a property
ReflectionParameter::isVariadic
β Checks if the parameter is variadic
ReflectionParameter::__toString
β To string
ReflectionProperty
β The ReflectionProperty class
ReflectionProperty::__clone
β Clone
ReflectionProperty::__construct
β Construct a ReflectionProperty object
ReflectionProperty::export
β Export
ReflectionProperty::getAttributes
β Gets Attributes
ReflectionProperty::getDeclaringClass
β Gets declaring class
ReflectionProperty::getDefaultValue
β Returns the default value declared for a property
ReflectionProperty::getDocComment
β Gets the property doc comment
ReflectionProperty::getHook
β Returns a reflection object for a specified hook
ReflectionProperty::getHooks
β Returns an array of all hooks on this property
ReflectionProperty::getModifiers
β Gets the property modifiers
ReflectionProperty::getName
β Gets property name
ReflectionProperty::getRawValue
β Returns the value of a property, bypassing a get hook if defined
ReflectionProperty::getSettableType
β Returns the parameter type of a setter hook
ReflectionProperty::getType
β Gets a property's type
ReflectionProperty::getValue
β Gets value
ReflectionProperty::hasDefaultValue
β Checks if property has a default value declared
ReflectionProperty::hasHook
β Returns whether the property has a given hook defined
ReflectionProperty::hasHooks
β Returns whether the property has any hooks defined
ReflectionProperty::hasType
β Checks if property has a type
ReflectionProperty::isAbstract
β Determines if a property is abstract
ReflectionProperty::isDefault
β Checks if property is a default property
ReflectionProperty::isDynamic
β Checks if property is a dynamic property
ReflectionProperty::isFinal
β Determines if this property is final or not
ReflectionProperty::isInitialized
β Checks whether a property is initialized
ReflectionProperty::isLazy
β Checks whether a property is lazy
ReflectionProperty::isPrivate
β Checks if property is private
ReflectionProperty::isPrivateSet
β Checks if property is private for writing
ReflectionProperty::isPromoted
β Checks if property is promoted
ReflectionProperty::isProtected
β Checks if property is protected
ReflectionProperty::isProtectedSet
β Checks whether the property is protected for writing
ReflectionProperty::isPublic
β Checks if property is public
ReflectionProperty::isReadOnly
β Checks if property is readonly
ReflectionProperty::isStatic
β Checks if property is static
ReflectionProperty::isVirtual
β Determines if a property is virtual
ReflectionProperty::setAccessible
β Set property accessibility
ReflectionProperty::setRawValue
β Sets the value of a property, bypassing a set hook if defined
ReflectionProperty::setRawValueWithoutLazyInitialization
β Set raw property value without triggering lazy initialization
ReflectionProperty::setValue
β Set property value
ReflectionProperty::skipLazyInitialization
β Marks property as non-lazy
ReflectionProperty::__toString
β To string
ReflectionType
β The ReflectionType class
ReflectionType::allowsNull
β Checks if null is allowed
ReflectionType::__toString
β To string
ReflectionUnionType
β The ReflectionUnionType class
ReflectionUnionType::getTypes
β Returns the types included in the union type
ReflectionGenerator
β The ReflectionGenerator class
ReflectionGenerator::__construct
β Constructs a ReflectionGenerator object
ReflectionGenerator::getExecutingFile
β Gets the file name of the currently executing generator
ReflectionGenerator::getExecutingGenerator
β Gets the executing Generator object
ReflectionGenerator::getExecutingLine
β Gets the currently executing line of the generator
ReflectionGenerator::getFunction
β Gets the function name of the generator
ReflectionGenerator::getThis
β Gets the $this value of the generator
ReflectionGenerator::getTrace
β Gets the trace of the executing generator
ReflectionGenerator::isClosed
β Checks if execution finished
ReflectionFiber
β The ReflectionFiber class
ReflectionFiber::__construct
β Constructs a ReflectionFiber object
ReflectionFiber::getCallable
β Gets the callable used to create the Fiber
ReflectionFiber::getExecutingFile
β Get the file name of the current execution point
ReflectionFiber::getExecutingLine
β Get the line number of the current execution point
ReflectionFiber::getFiber
β Get the reflected Fiber instance
ReflectionFiber::getTrace
β Get the backtrace of the current execution point
ReflectionIntersectionType
β The ReflectionIntersectionType class
ReflectionIntersectionType::getTypes
β Returns the types included in the intersection type
ReflectionReference
β The ReflectionReference class
ReflectionReference::__construct
β Private constructor to disallow direct instantiation
ReflectionReference::fromArrayElement
β Create a ReflectionReference from an array element
ReflectionReference::getId
β Get unique ID of a reference
ReflectionAttribute
β The ReflectionAttribute class
ReflectionAttribute::__construct
β Private constructor to disallow direct instantiation
ReflectionAttribute::getArguments
β Gets arguments passed to attribute
ReflectionAttribute::getName
β Gets attribute name
ReflectionAttribute::getTarget
β Returns the target of the attribute as bitmask
ReflectionAttribute::isRepeated
β Returns whether the attribute of this name has been repeated on a code element
ReflectionAttribute::newInstance
β Instantiates the attribute class represented by this ReflectionAttribute class and arguments
Reflector
β The Reflector interface
Reflector::export
β Exports
ReflectionException
β The ReflectionException class
PropertyHookType
β The PropertyHookType Enum
Found A Problem?
Learn How To Improve This Page
β’
Submit a Pull Request
β’
Report a Bug
οΌ
add a note
User Contributed Notes
There are no user contributed notes for this page.
0
pcntl_sigtimedwait
Waits for signals, with a timeout
0
similar_text
Calculate the similarity between two strings
0
boolval
Get the boolean value of a variable
0
curl_multi_close
Close a set of cURL handles
0
imap_body
Read the message body
0
mb_strpos
Find position of first occurrence of string in a string
0
pg_send_prepare
Sends a request to create a prepared statement with the given parameters, without waiting for completion
0
swoole_native_socket_bind
0
Arr::prependKeysWith
0
zend_version
Gets the version of the current Zend engine
^