ArithmeticFactor
extends Node
in package
ArithmeticFactor ::= [("+" | "-")] ArithmeticPrimary
Tags
Table of Contents
- $arithmeticPrimary : mixed
- $sign : bool|null
- NULL represents no sign, TRUE means positive and FALSE means negative sign.
- __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
- isNegativeSigned() : bool
- isPositiveSigned() : bool
Properties
$arithmeticPrimary
public
mixed
$arithmeticPrimary
$sign
NULL represents no sign, TRUE means positive and FALSE means negative sign.
public
bool|null
$sign
Methods
__construct()
public
__construct(mixed $arithmeticPrimary[, bool|null $sign = null ]) : mixed
Parameters
- $arithmeticPrimary : mixed
- $sign : bool|null = null
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(mixed $sqlWalker) : string
Parameters
- $sqlWalker : mixed
Return values
string —dump()
public
dump(object $obj) : string
Parameters
- $obj : object
Return values
string —isNegativeSigned()
public
isNegativeSigned() : bool
Return values
bool —isPositiveSigned()
public
isPositiveSigned() : bool