PHP Class Pinq\Parsing\FunctionSignature

Author: Elliot Levin ([email protected])
Inheritance: extends MagicResolvable, implements Pinq\Parsing\IFunctionSignature
Show file Open project: timetoogo/pinq Class Usage Examples

Protected Properties

Property Type Description
$accessModifier integer | null
$hash string
$isStatic boolean | null
$name string
$parameterExpressions Pinq\Expressions\ParameterExpression[]
$polymorphModifier integer | null
$returnsReference boolean
$scopedVariableNames string[] | null
$type integer

Public Methods

Method Description
closure ( boolean $returnsReference, array $parameterExpressions, array $scopedVariableNames ) : self Creates a closure signature with the supplied parameters.
fromReflection ( ReflectionFunctionAbstract $reflection ) : self Creates a function signature instance from the supplied reflection.
func ( boolean $returnsReference, string $name, array $parameterExpressions ) : self Creates a function signature with the supplied parameters.
getAccessModifier ( )
getHash ( )
getName ( )
getParameterExpressions ( )
getPolymorphModifier ( )
getScopedVariableNames ( )
getType ( )
isStatic ( )
method ( boolean $returnsReference, integer | null $accessModifier, integer | null $polymorphModifier, boolean $isStatic, string $name, array $parameterExpressions ) : self Creates a method signature with the supplied parameters.
returnsReference ( )

Protected Methods

Method Description
__construct ( $type, $returnsReference, $accessModifier, $polymorphModifier, $isStatic, $name, array $parameterExpressions, array $scopedVariableNames = null )
getParameterExpressionsFromReflection ( ReflectionFunctionAbstract $reflection )
withResolvedMagic ( array $resolvedExpressions )

Private Methods

Method Description
getParameterExpression ( ReflectionParameter $parameter )

Method Details

__construct() protected method

protected __construct ( $type, $returnsReference, $accessModifier, $polymorphModifier, $isStatic, $name, array $parameterExpressions, array $scopedVariableNames = null )
$parameterExpressions array
$scopedVariableNames array

closure() public static method

Creates a closure signature with the supplied parameters.
public static closure ( boolean $returnsReference, array $parameterExpressions, array $scopedVariableNames ) : self
$returnsReference boolean
$parameterExpressions array
$scopedVariableNames array
return self

fromReflection() public static method

Creates a function signature instance from the supplied reflection.
public static fromReflection ( ReflectionFunctionAbstract $reflection ) : self
$reflection ReflectionFunctionAbstract
return self

func() public static method

Creates a function signature with the supplied parameters.
public static func ( boolean $returnsReference, string $name, array $parameterExpressions ) : self
$returnsReference boolean
$name string
$parameterExpressions array
return self

getAccessModifier() public method

public getAccessModifier ( )

getHash() public method

public getHash ( )

getName() public method

public getName ( )

getParameterExpressions() public method

getParameterExpressionsFromReflection() protected static method

protected static getParameterExpressionsFromReflection ( ReflectionFunctionAbstract $reflection )
$reflection ReflectionFunctionAbstract

getPolymorphModifier() public method

getScopedVariableNames() public method

getType() public method

public getType ( )

isStatic() public method

public isStatic ( )

method() public static method

Creates a method signature with the supplied parameters.
public static method ( boolean $returnsReference, integer | null $accessModifier, integer | null $polymorphModifier, boolean $isStatic, string $name, array $parameterExpressions ) : self
$returnsReference boolean
$accessModifier integer | null
$polymorphModifier integer | null
$isStatic boolean
$name string
$parameterExpressions array
return self

returnsReference() public method

public returnsReference ( )

withResolvedMagic() protected method

protected withResolvedMagic ( array $resolvedExpressions )
$resolvedExpressions array

Property Details

$accessModifier protected property

protected int|null $accessModifier
return integer | null

$hash protected property

protected string $hash
return string

$isStatic protected property

protected bool|null $isStatic
return boolean | null

$name protected property

protected string $name
return string

$parameterExpressions protected property

protected ParameterExpression[],Pinq\Expressions $parameterExpressions
return Pinq\Expressions\ParameterExpression[]

$polymorphModifier protected property

protected int|null $polymorphModifier
return integer | null

$returnsReference protected property

protected bool $returnsReference
return boolean

$scopedVariableNames protected property

protected string[]|null $scopedVariableNames
return string[] | null

$type protected property

protected int $type
return integer