class AggregateExpression extends Node (View source)

Description of AggregateExpression.

Properties

string $functionName
PathExpression|SimpleArithmeticExpression $pathExpression
bool $isDistinct Some aggregate expressions support distinct, eg COUNT.

Methods

string
dispatch(SqlWalker $walker)

Double-dispatch method, supposed to dispatch back to the walker.

string
__toString()

Dumps the AST Node into a string representation for information purpose only.

from Node
string
dump(object $obj)

No description

from Node
__construct(string $functionName, PathExpression|SimpleArithmeticExpression $pathExpression, bool $isDistinct)

No description

Details

string dispatch(SqlWalker $walker)

Double-dispatch method, supposed to dispatch back to the walker.

Implementation is not mandatory for all nodes.

Parameters

SqlWalker $walker

Return Value

string

Exceptions

ASTException

string __toString()

Dumps the AST Node into a string representation for information purpose only.

Return Value

string

string dump(object $obj)

Parameters

object $obj

Return Value

string

__construct(string $functionName, PathExpression|SimpleArithmeticExpression $pathExpression, bool $isDistinct)

Parameters

string $functionName
PathExpression|SimpleArithmeticExpression $pathExpression
bool $isDistinct