t IN_ONESHOT = 2147483648; // End of inotify v.0.1.6 Reflector is an interface implemented by all * exportable Reflection classes. * * @link https://php.net/manual/en/class.reflector.php */ interface Reflector extends Stringable { /** * Exports a class. * * @link https://php.net/manual/en/reflector.export.php * @return string|null * @removed 8.0 */ #[Deprecated(since: '7.4')] public static function export(); /** * Returns the string representation of any Reflection object. * * Please note that since PHP 8.0 this method is absent in this interface * and inherits from the {@see Stringable} parent. * * @return string */ public function __toString(); } ReflectionProperty class reports information about a classes * properties. * * @link https://php.net/manual/en/class.reflectionproperty.php */ class ReflectionProperty implements Reflector { /** * @var string Name of the property, same as calling the {@see ReflectionProperty::getName()} method */ #[Immutable] public $name; /** * @var string Fully qualified class name where this property was defined */ #[Immutable] public $class; /** * Indicates that the property is static. * * @link https://www.php.net/manual/en/class.reflectionproperty.php#reflectionproperty.constants.is-static */ const IS_STATIC = 16; /** * Indicates that the property is public. * * @link https://www.php.net/manual/en/class.reflectionproperty.php#reflectionproperty.constants.is-public */ const IS_PUBLIC = 1; /** * Indicates that the property is protected. * * @link https://www.php.net/manual/en/class.reflectionproperty.php#reflectionproperty.constants.is-protected */ const IS_PROTECTED = 2; /** * Indicates that the property is private. * * @link https://www.php.net/manual/en/class.reflectionproperty.php#reflectionproperty.constants.is-private */ const IS_PRIVATE = 4; /** * Construct a ReflectionProperty object * * @link https://php.net/manual/en/reflectionproperty.construct.php * @param string|object $class The class name, that contains the property. * @param string $property The name of the property being reflected. * @throws \ReflectionException if the class or property does not exist. */ public function __construct($class, $property) { } /** * Export * * @link https://php.net/manual/en/reflectionproperty.export.php * @param mixed $class The reflection to export. * @param string $name The property name. * @param bool $return Setting to {@see true} will return the export, as * opposed to emitting it. Setting to {@see false} (the default) will do the * opposite. * @return string|null * @removed 8.0 */ #[Deprecated(since: '7.4')] public static function export($class, $name, $return = false) { } /** * To string * * @link https://php.net/manual/en/reflectionproperty.tostring.php * @return string */ public function __toString() { } /** * Gets property name * * @link https://php.net/manual/en/reflectionproperty.getname.php * @return string The name of the reflected property. */ #[Pure] public function getName() { } /** * Gets value * * @link https://php.net/manual/en/reflectionproperty.getvalue.php * @param object|null $object If the property is non-static an object must be * provided to fetch the property from. If you want to fetch the default * property without providing an object use {@see ReflectionClass::getDefaultProperties} * instead. * @return mixed The current value of the property. */ #[Pure] public function getValue($object = null) { } /** * Set property value * * @link https://php.net/manual/en/reflectionproperty.setvalue.php * @param mixed $objectOrValue If the property is non-static an object must * be provided to change the property on. If the property is static this * parameter is left out and only $value needs to be provided. * @param mixed $value The new value. * @return void No value is returned. */ public function setValue($objectOrValue, $value = null) { } /** * Checks if property is public * * @link https://php.net/manual/en/reflectionproperty.ispublic.php * @return bool Return {@see true} if the property is public, {@see false} otherwise. */ #[Pure] public function isPublic() { } /** * Checks if property is private * * @link https://php.net/manual/en/reflectionproperty.isprivate.php * @return bool Return {@see true} if the property is private, {@see false} otherwise. */ #[Pure] public function isPrivate() { } /** * Checks if property is protected * * @link https://php.net/manual/en/reflectionproperty.isprotected.php * @return bool Returns {@see true} if the property is protected, {@see false} otherwise. */ #[Pure] public function isProtected() { } /** * Checks if property is static * * @link https://php.net/manual/en/reflectionproperty.isstatic.php * @return bool Retruns {@see true} if the property is static, {@see false} otherwise. */ #[Pure] public function isStatic() { } /** * Checks if default value * * @link https://php.net/manual/en/reflectionproperty.isdefault.php * @return bool Returns {@see true} if the property was declared at * compile-time, or {@see false} if it was created at run-time. */ #[Pure] public function isDefault() { } /** * Gets modifiers * * @link https://php.net/manual/en/reflectionproperty.getmodifiers.php * @return int A numeric representation of the modifiers. */ #[Pure] public function getModifiers() { } /** * Gets declaring class * * @link https://php.net/manual/en/reflectionproperty.getdeclaringclass.php * @return ReflectionClass A {@see ReflectionClass} object. */ #[Pure] public function getDeclaringClass() { } /** * Gets doc comment * * @link https://php.net/manual/en/reflectionproperty.getdoccomment.php * @return string|false The doc comment if it exists, otherwise {@see false} */ #[Pure] public function getDocComment() { } /** * Set property accessibility * * @link https://php.net/manual/en/reflectionproperty.setaccessible.php * @param bool $accessible A boolean {@see true} to allow accessibility, or {@see false} * @return void No value is returned. */ public function setAccessible($accessible) { } /** * Gets property type * * @link https://php.net/manual/en/reflectionproperty.gettype.php * @return ReflectionType|null Returns a {@see ReflectionType} if the * property has a type, and {@see null} otherwise. * @since 7.4 */ #[Pure] public function getType() { } /** * Checks if property has type * * @link https://php.net/manual/en/reflectionproperty.hastype.php * @return bool Returns {@see true} if a type is specified, {@see false} otherwise. * @since 7.4 */ public function hasType() { } /** * Checks if property is initialized * * @link https://php.net/manual/en/reflectionproperty.isinitialized.php * @param object|null $object If the property is non-static an object must be provided to fetch the property from. * @return bool Returns {@see false} for typed properties prior to initialization, and for properties that have * been explicitly {@see unset()}. For all other properties {@see true} will be returned. * @since 7.4 */ #[Pure] public function isInitialized(?object $object = null) { } /** * Returns information about whether the property was promoted. * * @return bool Returns {@see true} if the property was promoted or {@see false} instead. * @since 8.0 */ #[Pure] public function isPromoted() { } /** * Clone * * @link https://php.net/manual/en/reflectionproperty.clone.php * @return void */ final private function __clone() { } /** * @return bool * @since 8.0 */ public function hasDefaultValue(){} /** * @return mixed * @since 8.0 */ #[Pure] public function getDefaultValue(){} /** * @param null|string $name * @param int $flags * @return ReflectionAttribute[] * @since 8.0 */ #[Pure] public function getAttributes(?string $name = null, int $flags = 0) {} } options can be any of the following the following flags. * * Available options: * * {@see DEBUG_BACKTRACE_PROVIDE_OBJECT} - Default * * {@see DEBUG_BACKTRACE_IGNORE_ARGS} - Don't include the argument * information for functions in the stack trace. * * @return array Returns the trace of the currently executing generator. * @since 7.0 */ #[Pure] public function getTrace($options = DEBUG_BACKTRACE_PROVIDE_OBJECT) { } /** * Gets the function name of the generator * * @link https://php.net/manual/en/reflectiongenerator.getfunction.php * @return ReflectionFunctionAbstract Returns a {@see ReflectionFunctionAbstract} * class. This will be {@see ReflectionFunction} for functions, * or {@see ReflectionMethod} for methods. * @since 7.0 */ #[Pure] public function getFunction() { } /** * Gets the function name of the generator * * @link https://php.net/manual/en/reflectiongenerator.getthis.php * @return object|null Returns the $this value, or {@see null} if the * generator was not created in a class context. * @since 7.0 */ #[Pure] public function getThis() { } /** * Gets the executing Generator object * * @link https://php.net/manual/en/reflectiongenerator.construct.php * @return Generator Returns the currently executing Generator object. * @since 7.0 * */ #[Pure] public function getExecutingGenerator() { } } ReflectionExtension class reports information about an extension. * * @link https://php.net/manual/en/class.reflectionextension.php */ class ReflectionExtension implements Reflector { /** * @var string Name of the extension, same as calling the {@see ReflectionExtension::getName()} method */ #[Immutable] public $name; /** * Constructs a ReflectionExtension * * @link https://php.net/manual/en/reflectionextension.construct.php * @param string $name Name of the extension. * @throws \ReflectionException if the extension does not exist. */ public function __construct($name) { } /** * Exports a reflected extension. * The output format of this function is the same as the CLI argument --re [extension]. * * @link https://php.net/manual/en/reflectionextension.export.php * @param string $name The reflection to export. * @param bool $return Setting to {@see true} will return the * export, as opposed to emitting it. Setting to {@see false} (the default) * will do the opposite. * @return string|null If the $return parameter is set to {@see true}, then * the export is returned as a string, otherwise {@see null} is returned. * @removed 8.0 */ #[Deprecated(since: '7.4')] public static function export($name, $return = false) { } /** * To string * * @link https://php.net/manual/en/reflectionextension.tostring.php * @return string the exported extension as a string, in the same way as * the {@see ReflectionExtension::export()}. */ public function __toString() { } /** * Gets extension name * * @link https://php.net/manual/en/reflectionextension.getname.php * @return string The extensions name. */ #[Pure] public function getName() { } /** * Gets extension version * * @link https://php.net/manual/en/reflectionextension.getversion.php * @return string The version of the extension. */ #[Pure] public function getVersion() { } /** * Gets extension functions * * @link https://php.net/manual/en/reflectionextension.getfunctions.php * @return ReflectionFunction[] An associative array of {@see ReflectionFunction} objects, * for each function defined in the extension with the keys being the function * names. If no function are defined, an empty array is returned. */ #[Pure] public function getFunctions() { } /** * Gets constants * * @link https://php.net/manual/en/reflectionextension.getconstants.php * @return array An associative array with constant names as keys. */ #[Pure] public function getConstants() { } /** * Gets extension ini entries * * @link https://php.net/manual/en/reflectionextension.getinientries.php * @return array An associative array with the ini entries as keys, * with their defined values as values. */ #[Pure] public function getINIEntries() { } /** * Gets classes * * @link https://php.net/manual/en/reflectionextension.getclasses.php * @return ReflectionClass[] An array of {@see ReflectionClass} objects, one * for each class within the extension. If no classes are defined, * an empty array is returned. */ #[Pure] public function getClasses() { } /** * Gets class names * * @link https://php.net/manual/en/reflectionextension.getclassnames.php * @return string[] An array of class names, as defined in the extension. * If no classes are defined, an empty array is returned. */ #[Pure] public function getClassNames() { } /** * Gets dependencies * * @link https://php.net/manual/en/reflectionextension.getdependencies.php * @return string[] An associative array with dependencies as keys and * either Required, Optional or Conflicts as the values. */ #[Pure] public function getDependencies() { } /** * Print extension info * * @link https://php.net/manual/en/reflectionextension.info.php * @return void Print extension info */ public function info() { } /** * Returns whether this extension is persistent * * @link https://php.net/manual/en/reflectionextension.ispersistent.php * @return bool Returns {@see true} for extensions loaded by extension, {@see false} otherwise. * @since 5.4 */ #[Pure] public function isPersistent() { } /** * Returns whether this extension is temporary * * @link https://php.net/manual/en/reflectionextension.istemporary.php * @return bool Returns {@see true} for extensions loaded by {@see dl()}, {@see false} otherwise. * @since 5.4 */ #[Pure] public function isTemporary() { } /** * Clones * * @link https://php.net/manual/en/reflectionextension.clone.php * @return void No value is returned, if called a fatal error will occur. */ final private function __clone() { } } ReflectionClass class reports information about a class. * * @link https://php.net/manual/en/class.reflectionclass.php */ class ReflectionClass implements Reflector { /** * @var string Name of the class, same as calling the {@see ReflectionClass::getName()} method */ #[Immutable] public $name; /** * Indicates class that is abstract because it has some abstract methods. * * @link https://www.php.net/manual/en/class.reflectionclass.php#reflectionclass.constants.is-implicit-abstract */ const IS_IMPLICIT_ABSTRACT = 16; /** * Indicates class that is abstract because of its definition. * * @link https://www.php.net/manual/en/class.reflectionclass.php#reflectionclass.constants.is-explicit-abstract */ const IS_EXPLICIT_ABSTRACT = 64; /** * Indicates final class. * * @link https://www.php.net/manual/en/class.reflectionclass.php#reflectionclass.constants.is-final */ const IS_FINAL = 32; /** * Constructs a ReflectionClass * * @link https://php.net/manual/en/reflectionclass.construct.php * @param string|object $objectOrClass Either a string containing the name of * the class to reflect, or an object. * @throws \ReflectionException if the class does not exist. */ public function __construct($objectOrClass) { } /** * Exports a reflected class * * @link https://php.net/manual/en/reflectionclass.export.php * @param mixed $argument The reflection to export. * @param bool $return Setting to {@see true} will return the export, as * opposed to emitting it. Setting to {@see false} (the default) will do the opposite. * @return string|null If the $return parameter is set to {@see true}, then the * export is returned as a string, otherwise {@see null} is returned. * @removed 8.0 */ #[Deprecated(since: '7.4')] public static function export($argument, $return = false) { } /** * Returns the string representation of the ReflectionClass object. * * @link https://php.net/manual/en/reflectionclass.tostring.php * @return string A string representation of this {@see ReflectionClass} instance. */ public function __toString() { } /** * Gets class name * * @link https://php.net/manual/en/reflectionclass.getname.php * @return string The class name. */ #[Pure] public function getName() { } /** * Checks if class is defined internally by an extension, or the core * * @link https://php.net/manual/en/reflectionclass.isinternal.php * @return bool Returns {@see true} on success or {@see false} on failure. */ #[Pure] public function isInternal() { } /** * Checks if user defined * * @link https://php.net/manual/en/reflectionclass.isuserdefined.php * @return bool Returns {@see true} on success or {@see false} on failure. */ #[Pure] public function isUserDefined() { } /** * Checks if the class is instantiable * * @link https://php.net/manual/en/reflectionclass.isinstantiable.php * @return bool Returns {@see true} on success or {@see false} on failure. */ #[Pure] public function isInstantiable() { } /** * Returns whether this class is cloneable * * @link https://php.net/manual/en/reflectionclass.iscloneable.php * @return bool Returns {@see true} if the class is cloneable, {@see false} otherwise. * @since 5.4 */ #[Pure] public function isCloneable() { } /** * Gets the filename of the file in which the class has been defined * * @link https://php.net/manual/en/reflectionclass.getfilename.php * @return string|false the filename of the file in which the class has been defined. * If the class is defined in the PHP core or in a PHP extension, {@see false} * is returned. */ #[Pure] public function getFileName() { } /** * Gets starting line number * * @link https://php.net/manual/en/reflectionclass.getstartline.php * @return int The starting line number, as an integer. */ #[Pure] public function getStartLine() { } /** * Gets end line * * @link https://php.net/manual/en/reflectionclass.getendline.php * @return int|false The ending line number of the user defined class, or * {@see false} if unknown. */ #[Pure] public function getEndLine() { } /** * Gets doc comments * * @link https://php.net/manual/en/reflectionclass.getdoccomment.php * @return string|false The doc comment if it exists, otherwise {@see false} */ #[Pure] public function getDocComment() { } /** * Gets the constructor of the class * * @link https://php.net/manual/en/reflectionclass.getconstructor.php * @return ReflectionMethod|null A {@see ReflectionMethod} object reflecting * the class' constructor, or {@see null} if the class has no constructor. */ #[Pure] public function getConstructor() { } /** * Checks if method is defined * * @link https://php.net/manual/en/reflectionclass.hasmethod.php * @param string $name Name of the m0001;">女人的战争之女人的理由