AggregateExpression
extends Node
in package
Abstract class of an AST node.
Table of Contents
Properties
- $functionName : string
- $isDistinct : bool
- Some aggregate expressions support distinct, eg COUNT.
- $pathExpression : PathExpression|SimpleArithmeticExpression
Methods
- __construct() : mixed
- __toString() : string
- Dumps the AST Node into a string representation for information purpose only.
- dispatch() : string
- Double-dispatch method, supposed to dispatch back to the walker.
- dump() : string
Properties
$functionName
public
string
$functionName
$isDistinct
Some aggregate expressions support distinct, eg COUNT.
public
bool
$isDistinct
= false
$pathExpression
public
PathExpression|SimpleArithmeticExpression
$pathExpression
Methods
__construct()
public
__construct(string $functionName, PathExpression|SimpleArithmeticExpression $pathExpression, bool $isDistinct) : mixed
Parameters
- $functionName : string
- $pathExpression : PathExpression|SimpleArithmeticExpression
- $isDistinct : bool
__toString()
Dumps the AST Node into a string representation for information purpose only.
public
__toString() : string
Return values
stringdispatch()
Double-dispatch method, supposed to dispatch back to the walker.
public
dispatch(mixed $walker) : string
Parameters
- $walker : mixed
Return values
stringdump()
public
dump(mixed $value) : string
Parameters
- $value : mixed