PHP Interface Pinq\Queries\Functions\IFunction

Author: Elliot Levin ([email protected])
Inheritance: extends Serializable
Afficher le fichier Open project: timetoogo/pinq Interface Usage Examples

Méthodes publiques

Méthode Description
countBodyExpressions ( ) : integer Gets amount of body expressions of the function.
countBodyExpressionsUntilReturn ( ) : integer Gets amount of body expressions of the function before and including the first return statement.
getBodyExpressions ( ) : Expression[] Gets the body expressions of the function.
getBodyExpressionsUntilReturn ( ) : Expression[] Gets the body expressions of the function before and including the first return statement.
getCallableId ( ) : string Gets the parameter id of the callable for the function.
getEvaluationContextFactory ( ) : FunctionEvaluationContextFactory Gets an evaluation context factory of the function.
getNamespace ( ) : string | null Gets the namespace the function was defined in.
getParameterIds ( ) : string[]
getParameterScopedVariableMap ( ) : array Gets an array containing the parameter ids as keys with their respective scoped variable name as the value.
getParameters ( ) : ParameterBase
getScopeType ( ) : string | null Gets the bound type of the function.
hasNamespace ( ) : boolean Whether the function is defined in a namespace.
hasScopeType ( ) : boolean Whether the function has a scoped type.
isInternal ( ) : boolean
update ( string | null $scopeType, string | null $namespace, array $parameterScopedVariableMap, array $parameterExpressions, array $bodyExpressions = null ) : static
updateBody ( array $bodyExpressions = null ) : static
walk ( ExpressionWalker $walker ) : static

Method Details

countBodyExpressions() public méthode

Gets amount of body expressions of the function.
public countBodyExpressions ( ) : integer
Résultat integer

countBodyExpressionsUntilReturn() public méthode

Gets amount of body expressions of the function before and including the first return statement.

getBodyExpressions() public méthode

Gets the body expressions of the function.
public getBodyExpressions ( ) : Expression[]
Résultat Pinq\Expressions\Expression[]

getBodyExpressionsUntilReturn() public méthode

Gets the body expressions of the function before and including the first return statement.
public getBodyExpressionsUntilReturn ( ) : Expression[]
Résultat Pinq\Expressions\Expression[]

getCallableId() public méthode

Gets the parameter id of the callable for the function.
public getCallableId ( ) : string
Résultat string

getEvaluationContextFactory() public méthode

Gets an evaluation context factory of the function.
public getEvaluationContextFactory ( ) : FunctionEvaluationContextFactory
Résultat FunctionEvaluationContextFactory

getNamespace() public méthode

Null if was defined in the global namespace.
public getNamespace ( ) : string | null
Résultat string | null

getParameterIds() public méthode

public getParameterIds ( ) : string[]
Résultat string[]

getParameterScopedVariableMap() public méthode

Gets an array containing the parameter ids as keys with their respective scoped variable name as the value.
public getParameterScopedVariableMap ( ) : array
Résultat array

getParameters() public méthode

public getParameters ( ) : ParameterBase
Résultat Pinq\Queries\Functions\Parameters\ParameterBase

getScopeType() public méthode

Null if there is no bound type.
public getScopeType ( ) : string | null
Résultat string | null

hasNamespace() public méthode

Whether the function is defined in a namespace.
public hasNamespace ( ) : boolean
Résultat boolean

hasScopeType() public méthode

Whether the function has a scoped type.
public hasScopeType ( ) : boolean
Résultat boolean

isInternal() public méthode

public isInternal ( ) : boolean
Résultat boolean

update() public méthode

public update ( string | null $scopeType, string | null $namespace, array $parameterScopedVariableMap, array $parameterExpressions, array $bodyExpressions = null ) : static
$scopeType string | null
$namespace string | null
$parameterScopedVariableMap array
$parameterExpressions array
$bodyExpressions array
Résultat static

updateBody() public méthode

public updateBody ( array $bodyExpressions = null ) : static
$bodyExpressions array
Résultat static

walk() public méthode

public walk ( ExpressionWalker $walker ) : static
$walker Pinq\Expressions\ExpressionWalker
Résultat static