Expr
in package
implements
Stringable
Class for SQL expressions
Passed as a value to a Select object, it will be inserted into the SQL as-is without any quoting or escaping.
Table of Contents
Interfaces
- Stringable
Properties
- $_expression : string
- Storage for the SQL expression.
Methods
- __construct() : mixed
- Instantiate an expression, which is just a string stored as an instance member variable.
- __toString() : string
Properties
$_expression
Storage for the SQL expression.
protected
string
$_expression
Methods
__construct()
Instantiate an expression, which is just a string stored as an instance member variable.
public
__construct(string $expression) : mixed
Parameters
- $expression : string
-
The string containing a SQL expression.
__toString()
public
__toString() : string
Attributes
- #[Override]
Return values
string —The string of the SQL expression stored in this object.