php 反射机制
- ReflectionFunctionAbstract::getReturnType()php7
- Getsthespecifiedreturntypeofafunction
- ReflectionFunctionAbstract::hasReturnType()php7
- Checksifthefunctionhasaspecifiedreturntype
- ReflectionFunctionAbstract::inNamespace()
- 检查是否处于命名空间
- ReflectionFunctionAbstract::isClosure()
- 检查是否是匿名函数
- ReflectionFunctionAbstract::isGenerator()
- 判断函数是否是一个生成器函数
- ReflectionFunctionAbstract::isInternal()
- 判断函数是否是内置函数
- ReflectionFunctionAbstract::isVariadic()
- Checksifthefunctionisvariadic
- ReflectionMethod::__construct()
- ReflectionMethod的构造函数
- ReflectionMethod::export()
- 输出一个回调方法
- ReflectionMethod::getClosure()
- 返回一个动态建立的方法调用接口,译者注:可以使用这个返回值直接调用非公开方法。
- ReflectionMethod::getDeclaringClass()
- 获取反射函数调用参数的类表达
- ReflectionMethod::getModifiers()
- 获取方法的修饰符
- ReflectionMethod::getPrototype()
- 返回方法原型(如果存在)
- ReflectionMethod::invoke()
- Invoke
- ReflectionMethod::isAbstract()
- 判断方法是否是抽象方法
- ReflectionMethod::isConstructor()
- 判断方法是否是构造方法
- ReflectionMethod::isDestructor()
- 判断方法是否是析构方法
- ReflectionMethod::isFinal()
- 判断方法是否定义final
- ReflectionMethod::isPrivate()
- 判断方法是否是私有方法
- ReflectionMethod::isProtected()
- 判断方法是否是保护方法(protected)
- ReflectionMethod::isPublic()
- 判断方法是否是公开方法
- ReflectionMethod::isStatic()
- 判断方法是否是静态方法
- ReflectionMethod::setAccessible()
- 设置方法是否访问
- ReflectionMethod::__toString()
- 返回反射方法对象的字符串表达
- ReflectionObject::__construct()
- ConstructsaReflectionObject
- ReflectionObject::export()
- Export
- ReflectionParameter::allowsNull()
- Checksifnullisallowed
- ReflectionParameter::canBePassedByValue()
- Returnswhetherthisparametercanbepassedbyvalue
- ReflectionParameter::__construct()
- Construct
- ReflectionParameter::export()
- Exports
- ReflectionParameter::getClass()
- 获得类型提示类。
- ReflectionParameter::getDeclaringClass()
- Getsdeclaringclass
- ReflectionParameter::getDeclaringFunction()
- Getsdeclaringfunction
- ReflectionParameter::getDefaultValue()
- Getsdefaultparametervalue
- ReflectionParameter::getDefaultValueConstantName()
- Returnsthedefaultvalue'sconstantnameifdefaultvalueisconstantornull
- ReflectionParameter::getName()
- Getsparametername
- ReflectionParameter::getPosition()
- Getsparameterposition
- ReflectionParameter::getType()php7
- Getsaparameter'stype
- ReflectionParameter::hasType()php7
- Checksifparameterhasatype
- ReflectionParameter::isArray()
- Checksifparameterexpectsanarray
- ReflectionParameter::isCallable()
- ReturnswhetherparameterMUSTbecallable
- ReflectionParameter::isDefaultValueConstant()
- Returnswhetherthedefaultvalueofthisparameterisaconstant
- ReflectionParameter::isOptional()
- Checksifoptional
- ReflectionParameter::isPassedByReference()
- Checksifpassedbyreference
- ReflectionParameter::isVariadic()
- Checksiftheparameterisvariadic
- ReflectionParameter::__toString()
- Tostring
- ReflectionProperty::__construct()
- ConstructaReflectionPropertyobject
- ReflectionProperty::export()
- Export
- ReflectionProperty::getDeclaringClass()
- Getsdeclaringclass
- ReflectionProperty::getDocComment()
- Getsthepropertydoccomment
- ReflectionProperty::getModifiers()
- Getsthepropertymodifiers
- ReflectionProperty::getName()
- Getspropertyname
- ReflectionProperty::getType()
- Getsaproperty'stype
- ReflectionProperty::getValue()
- Getsvalue
- ReflectionProperty::hasType()
- Checksifpropertyhasatype
- ReflectionProperty::isDefault()
- Checksifpropertyisadefaultproperty
- ReflectionProperty::isInitialized()
- Checkswhetherapropertyisinitialized
- ReflectionProperty::isPrivate()
- Checksifpropertyisprivate
- ReflectionProperty::isProtected()
- Checksifpropertyisprotected
- ReflectionProperty::isPublic()
- Checksifpropertyispublic
- ReflectionProperty::isStatic()
- Checksifpropertyisstatic
- ReflectionProperty::setAccessible()
- Setpropertyaccessibility
- ReflectionProperty::setValue()
- Setpropertyvalue
- ReflectionProperty::__toString()
- Tostring
- ReflectionType::allowsNull()php7
- Checksifnullisallowed
- ReflectionType::isBuiltin()php7
- Checksifitisabuilt-intype
- ReflectionType::__toString()php7
- Tostring
- ReflectionGenerator::__construct()php7
- ConstructsaReflectionGeneratorobject
- ReflectionGenerator::getExecutingFile()php7
- Getsthefilenameofthecurrentlyexecutinggenerator
- ReflectionGenerator::getExecutingGenerator()php7
- GetstheexecutingGeneratorobject
- ReflectionGenerator::getExecutingLine()php7
- Getsthecurrentlyexecutinglineofthegenerator
- ReflectionGenerator::getFunction()php7
- Getsthefunctionnameofthegenerator
- ReflectionGenerator::getThis()php7
- Getsthe$thisvalueofthegenerator
- ReflectionGenerator::getTrace()php7
- Getsthetraceoftheexecutinggenerator
- Reflector::export()
- Exports
- Reflector::__toString()
- 转化成字符串