DateDiffFunction
extends FunctionNode
in package
"DATE_DIFF" "(" ArithmeticPrimary "," ArithmeticPrimary ")"
Tags
Table of Contents
- $date1 : Node
- $date2 : Node
- $name : string
- __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
- getSql() : string
- parse() : void
Properties
$date1
public
Node
$date1
$date2
public
Node
$date2
$name
public
string
$name
Methods
__construct()
public
__construct(string $name) : mixed
Parameters
- $name : string
Return values
mixed —__toString()
Dumps the AST Node into a string representation for information purpose only.
public
__toString() : string
Return values
string —dispatch()
Double-dispatch method, supposed to dispatch back to the walker.
public
dispatch(SqlWalker $walker) : string
Implementation is not mandatory for all nodes.
Parameters
- $walker : SqlWalker
Tags
Return values
string —dump()
public
dump(object $obj) : string
Parameters
- $obj : object
Return values
string —getSql()
public
getSql(SqlWalker $sqlWalker) : string
Parameters
- $sqlWalker : SqlWalker
Tags
Return values
string —parse()
public
parse(Parser $parser) : void
Parameters
- $parser : Parser