ReflectionParameter::isOptional

(PHP 5 >= 5.0.3, PHP 7) Checks if optional public bool ReflectionParameter::isOptional ( void ) Checks if the parameter is optional. Returns: TRUE if the parameter is optional, otherwise FALSE See also: ReflectionParameter::getName() -

ReflectionParameter::isDefaultValueConstant

(PHP 5 >= 5.4.6, PHP 7) Returns whether the default value of this parameter is constant public bool ReflectionParameter::isDefaultValueConstant ( void ) Returns: Returns TRUE if the default value is constant, FALSE if it is not or NULL on failure. This function is currently not documented; only its argument list is available.

ReflectionParameter::isDefaultValueAvailable

(PHP 5 >= 5.0.3, PHP 7) Checks if a default value is available public bool ReflectionParameter::isDefaultValueAvailable ( void ) Checks if a default value for the parameter is available. Returns: TRUE if a default value is available, otherwise FALSE See also: ReflectionParameter::getDefaultValue() -

ReflectionParameter::isCallable

(PHP 5 >= 5.4.0, PHP 7) Returns whether parameter MUST be callable public bool ReflectionParameter::isCallable ( void ) Returns: Returns TRUE if the parameter is callable, FALSE if it is not or NULL on failure. This function is currently not documented; only its argument list is available.

ReflectionParameter::isArray

(PHP 5 >= 5.1.0, PHP 7) Checks if parameter expects an array public bool ReflectionParameter::isArray ( void ) Checks if the parameter expects an array. Returns: TRUE if an array is expected, FALSE otherwise. See also: ReflectionParameter::isOptional() -

ReflectionParameter::hasType

(PHP 7) Checks if parameter has a type public bool ReflectionParameter::hasType ( void ) Checks if the parameter has a type associated with it. Returns: TRUE if a type is specified, FALSE otherwise. Examples: ReflectionParameter::hasType() example <?php function someFunction(string $param, $param2 = null) {} $reflecti

ReflectionParameter::getType

(PHP 7) Gets a parameter's type public ReflectionType ReflectionParameter::getType ( void ) Gets the associated type of a parameter. Returns: Returns a ReflectionType object if a parameter type is specified, NULL otherwise. Examples: ReflectionParameter::getType() example <?php function someFunction(int $param, $param2

ReflectionParameter::getPosition

(PHP 5 >= 5.2.3, PHP 7) Gets parameter position public int ReflectionParameter::getPosition ( void ) Gets the position of the parameter. Returns: The position of the parameter, left to right, starting at position #0. See also: ReflectionParameter::getName() -

ReflectionParameter::getName

(PHP 5, PHP 7) Gets parameter name public string ReflectionParameter::getName ( void ) Gets the name of the parameter. Returns: The name of the reflected parameter.

ReflectionParameter::getDefaultValueConstantName

(PHP 5 >= 5.4.6, PHP 7) Returns the default value's constant name if default value is constant or null public string ReflectionParameter::getDefaultValueConstantName ( void ) Returns: Returns string on success or NULL on failure. This function is currently not documented; only its argument list is available.