PHP Класс Pinq\Parsing\FunctionSignature

Автор: Elliot Levin ([email protected])
Наследование: extends MagicResolvable, implements Pinq\Parsing\IFunctionSignature
Показать файл Открыть проект Примеры использования класса

Защищенные свойства (Protected)

Свойство Тип Описание
$accessModifier integer | null
$hash string
$isStatic boolean | null
$name string
$parameterExpressions Pinq\Expressions\ParameterExpression[]
$polymorphModifier integer | null
$returnsReference boolean
$scopedVariableNames string[] | null
$type integer

Открытые методы

Метод Описание
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 ( )

Защищенные методы

Метод Описание
__construct ( $type, $returnsReference, $accessModifier, $polymorphModifier, $isStatic, $name, array $parameterExpressions, array $scopedVariableNames = null )
getParameterExpressionsFromReflection ( ReflectionFunctionAbstract $reflection )
withResolvedMagic ( array $resolvedExpressions )

Приватные методы

Метод Описание
getParameterExpression ( ReflectionParameter $parameter )

Описание методов

__construct() защищенный Метод

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

closure() публичный статический Метод

Creates a closure signature with the supplied parameters.
public static closure ( boolean $returnsReference, array $parameterExpressions, array $scopedVariableNames ) : self
$returnsReference boolean
$parameterExpressions array
$scopedVariableNames array
Результат self

fromReflection() публичный статический Метод

Creates a function signature instance from the supplied reflection.
public static fromReflection ( ReflectionFunctionAbstract $reflection ) : self
$reflection ReflectionFunctionAbstract
Результат self

func() публичный статический Метод

Creates a function signature with the supplied parameters.
public static func ( boolean $returnsReference, string $name, array $parameterExpressions ) : self
$returnsReference boolean
$name string
$parameterExpressions array
Результат self

getAccessModifier() публичный Метод

public getAccessModifier ( )

getHash() публичный Метод

public getHash ( )

getName() публичный Метод

public getName ( )

getParameterExpressions() публичный Метод

getParameterExpressionsFromReflection() защищенный статический Метод

protected static getParameterExpressionsFromReflection ( ReflectionFunctionAbstract $reflection )
$reflection ReflectionFunctionAbstract

getPolymorphModifier() публичный Метод

getScopedVariableNames() публичный Метод

getType() публичный Метод

public getType ( )

isStatic() публичный Метод

public isStatic ( )

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
Результат self

returnsReference() публичный Метод

public returnsReference ( )

withResolvedMagic() защищенный Метод

protected withResolvedMagic ( array $resolvedExpressions )
$resolvedExpressions array

Описание свойств

$accessModifier защищенное свойство

protected int|null $accessModifier
Результат integer | null

$hash защищенное свойство

protected string $hash
Результат string

$isStatic защищенное свойство

protected bool|null $isStatic
Результат boolean | null

$name защищенное свойство

protected string $name
Результат string

$parameterExpressions защищенное свойство

protected ParameterExpression[],Pinq\Expressions $parameterExpressions
Результат Pinq\Expressions\ParameterExpression[]

$polymorphModifier защищенное свойство

protected int|null $polymorphModifier
Результат integer | null

$returnsReference защищенное свойство

protected bool $returnsReference
Результат boolean

$scopedVariableNames защищенное свойство

protected string[]|null $scopedVariableNames
Результат string[] | null

$type защищенное свойство

protected int $type
Результат integer