PHP Interface pinq\queries\functions\IFunction

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

Public Methods

Method 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 method

Gets amount of body expressions of the function.
public countBodyExpressions ( ) : integer
return integer

countBodyExpressionsUntilReturn() public method

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

getBodyExpressions() public method

Gets the body expressions of the function.
public getBodyExpressions ( ) : Expression[]
return pinq\expressions\Expression[]

getBodyExpressionsUntilReturn() public method

Gets the body expressions of the function before and including the first return statement.
public getBodyExpressionsUntilReturn ( ) : Expression[]
return pinq\expressions\Expression[]

getCallableId() public method

Gets the parameter id of the callable for the function.
public getCallableId ( ) : string
return string

getEvaluationContextFactory() public method

Gets an evaluation context factory of the function.
public getEvaluationContextFactory ( ) : FunctionEvaluationContextFactory
return FunctionEvaluationContextFactory

getNamespace() public method

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

getParameterIds() public method

public getParameterIds ( ) : string[]
return string[]

getParameterScopedVariableMap() public method

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

getParameters() public method

public getParameters ( ) : ParameterBase
return Pinq\Queries\Functions\Parameters\ParameterBase

getScopeType() public method

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

hasNamespace() public method

Whether the function is defined in a namespace.
public hasNamespace ( ) : boolean
return boolean

hasScopeType() public method

Whether the function has a scoped type.
public hasScopeType ( ) : boolean
return boolean

isInternal() public method

public isInternal ( ) : boolean
return boolean

update() public method

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
return static

updateBody() public method

public updateBody ( array $bodyExpressions = null ) : static
$bodyExpressions array
return static

walk() public method

public walk ( ExpressionWalker $walker ) : static
$walker pinq\expressions\ExpressionWalker
return static