Statement
Table of Contents
Properties
- $conditions : mixed
- $dependOn : mixed
- $tableName : mixed
Methods
- addCondition() : Statement
- Adds condition on which statement have to be executed.
- addLine() : Statement
- Adds one more line to the body.
- formatBodyLines() : string
- Return body aligned with tab characters.
- merge() : Statement
- Merges two statements.
Properties
$conditions
public
mixed
$conditions
= []
$dependOn
public
mixed
$dependOn
= ''
$tableName
public
mixed
$tableName
= ''
Methods
addCondition()
Adds condition on which statement have to be executed.
public
addCondition(string $predicate) : Statement
Parameters
- $predicate : string
-
Condition predicate.
Return values
StatementaddLine()
Adds one more line to the body.
public
addLine(string $line) : Statement
Parameters
- $line : string
-
Line of code.
Return values
StatementformatBodyLines()
Return body aligned with tab characters.
public
formatBodyLines([int $level = 0 ]) : string
Parameters
- $level : int = 0
-
Code align level.
Return values
stringmerge()
Merges two statements.
public
merge(Statement $stmt) : Statement
Parameters
- $stmt : Statement
-
Contains lines to be added.