Zend\Code\Reflection\ParameterReflection
Synopsis
class ParameterReflection
extends ReflectionParameter
implements
ReflectionInterface
{
- // members
- protected bool $isFromMethod;
- // Inherited members from ReflectionParameter
- public $name;
- // methods
- public ClassReflection getDeclaringClass()
- public ClassReflection getClass()
- public FunctionReflection|MethodReflection getDeclaringFunction()
- public string getType()
- public void toString()
- public void __toString()
- // Inherited methods from ReflectionParameter
- public bool allowsNull()
- public bool canBePassedByValue()
- public void __construct()
- public string export()
- public ReflectionClass getClass()
- public ReflectionClass getDeclaringClass()
- public ReflectionFunction getDeclaringFunction()
- public mixed getDefaultValue()
- public string getDefaultValueConstantName()
- public string getName()
- public int getPosition()
- public bool isArray()
- public bool isCallable()
- public bool isDefaultValueAvailable()
- public bool isDefaultValueConstant()
- public bool isOptional()
- public bool isPassedByReference()
- public string __toString()
Hierarchy
Members
protected
- $isFromMethod — Zend\Code\Reflection\bool
public
-
$name
Name of the parameter. Read-only, throws ReflectionException in attempt to write.
Methods
public
- __toString()
- getClass() — Get class reflection object
- getDeclaringClass() — Get declaring class reflection object
- getDeclaringFunction() — Get declaring function reflection object
- getType() — Get parameter type
- toString()
Inherited from ReflectionParameter
public
- __toString() — To string
- allowsNull() — Checks if null is allowed
- canBePassedByValue() — Returns whether this parameter can be passed by value
- export() — Exports
- getClass() — Get class
- getDeclaringClass() — Gets declaring class
- getDeclaringFunction() — Gets declaring function
- getDefaultValue() — Gets default parameter value
- getDefaultValueConstantName() — Returns the default value's constant name if default value is constant or null
- getName() — Gets parameter name
- getPosition() — Gets parameter position
- isArray() — Checks if parameter expects an array
- isCallable() — Returns whether parameter MUST be callable
- isDefaultValueAvailable() — Checks if a default value is available
- isDefaultValueConstant() — Returns whether the default value of this parameter is constant
- isOptional() — Checks if optional
- isPassedByReference() — Checks if passed by reference