Reflection of a not tokenized but defined method/function parameter.
Descendant of the internal reflection with additional features.
Methods summary
public
|
#
__construct( string|array $function, string $paramName, TokenReflection\Broker $broker, ReflectionFunctionAbstract $parent )
Constructor.
Parameters
- $function
string|array $function Defining function/method
- $paramName
string $paramName Parameter name
- $broker
TokenReflection\Broker
$broker Reflection broker
- $parent
ReflectionFunctionAbstract $parent Parent reflection object
Overrides
ReflectionParameter::__construct()
|
public
TokenReflection\IReflectionClass
|
#
getDeclaringClass( )
Returns the declaring class reflection.
Returns the declaring class reflection.
Returns
Overrides
ReflectionParameter::getDeclaringClass()
Implementation of
|
public
string|null
|
#
getDeclaringClassName( )
Returns the declaring class name.
Returns the declaring class name.
Returns
string|null
Implementation of
|
public
array
|
#
getNamespaceAliases( )
Returns imported namespaces and aliases from the declaring namespace.
Returns imported namespaces and aliases from the declaring namespace.
Returns
array
|
public
string
|
#
getFileName( )
Returns the file name the reflection object is defined in.
Returns the file name the reflection object is defined in.
Returns
string
|
public
TokenReflection\Php\ReflectionExtension
|
#
getExtension( )
Returns the PHP extension reflection.
Returns the PHP extension reflection.
Returns
|
public
string|boolean
|
#
getExtensionName( )
Returns the PHP extension name.
Returns the PHP extension name.
Returns
string|boolean
|
public
boolean
|
#
hasAnnotation( string $name )
Checks if there is a particular annotation.
Checks if there is a particular annotation.
Parameters
- $name
string $name Annotation name
Returns
boolean
|
public
null
|
#
getAnnotation( string $name )
Returns a particular annotation value.
Returns a particular annotation value.
Parameters
- $name
string $name Annotation name
Returns
null
|
public
array
|
|
public
TokenReflection\Php\ReflectionFunction |TokenReflection\Php\ReflectionMethod
|
#
getDeclaringFunction( )
Returns the declaring function reflection.
Returns the declaring function reflection.
Returns
Overrides
ReflectionParameter::getDeclaringFunction()
Implementation of
|
public
string|null
|
#
getDeclaringFunctionName( )
Returns the declaring function name.
Returns the declaring function name.
Returns
string|null
Implementation of
|
public
null
|
#
getStartLine( )
Returns the definition start line number in the file.
Returns the definition start line number in the file.
Returns
null
Implementation of
|
public
null
|
#
getEndLine( )
Returns the definition end line number in the file.
Returns the definition end line number in the file.
Returns
null
Implementation of
|
public
string|null
|
#
getDefaultValueDefinition( )
Returns the part of the source code defining the paramter default value.
Returns the part of the source code defining the paramter default value.
Returns
string|null
Implementation of
|
public
boolean
|
#
isCallable( )
Returns if the parameter expects a callback.
Returns if the parameter expects a callback.
Returns
boolean
|
public
string|null
|
#
getOriginalTypeHint( )
Returns the original type hint as defined in the source code.
Returns the original type hint as defined in the source code.
Returns
string|null
|
public
string|null
|
#
getClassName( )
Returns the required class name of the value.
Returns the required class name of the value.
Returns
string|null
Implementation of
|
public
boolean
|
#
isInternal( )
Returns if the parameter is internal.
Returns if the parameter is internal.
Returns
boolean
Implementation of
|
public
boolean
|
#
isUserDefined( )
Returns if the parameter is user defined.
Returns if the parameter is user defined.
Returns
boolean
Implementation of
|
public
boolean
|
#
isTokenized( )
Returns if the current reflection comes from a tokenized source.
Returns if the current reflection comes from a tokenized source.
Returns
boolean
Implementation of
|
public
boolean
|
#
isDeprecated( )
Returns if the reflection subject is deprecated.
Returns if the reflection subject is deprecated.
Returns
boolean
|
public
TokenReflection\Broker
|
#
getBroker( )
Returns the reflection broker used by this reflection object.
Returns the reflection broker used by this reflection object.
Returns
Implementation of
|
public
boolean
|
#
canBePassedByValue( )
Returns if the paramter value can be passed by value.
Returns if the paramter value can be passed by value.
Returns
boolean
Implementation of
|
public
string
|
#
getPrettyName( )
Returns an element pretty (docblock compatible) name.
Returns an element pretty (docblock compatible) name.
Returns
string
Implementation of
|
final public
mixed
|
#
__get( string $key )
Magic __get method.
Parameters
- $key
string $key Variable name
Returns
mixed
Implementation of
|
final public
boolean
|
#
__isset( string $key )
Magic __isset method.
Parameters
- $key
string $key Variable name
Returns
boolean
Implementation of
|
public static
TokenReflection\Php\ReflectionParameter
|
#
create( Reflector $internalReflection, TokenReflection\Broker $broker )
Creates a reflection instance.
Creates a reflection instance.
Parameters
- $internalReflection
ReflectionClass $internalReflection Internal reflection instance
- $broker
TokenReflection\Broker
$broker Reflection broker instance
Returns
Throws
Implementation of
|