classTableExpressionWithOptFromClauseOptWhereClauseOptGroupClauseOptHavingClauseOptOrderClauseOptLi_3201a72e
final class TableExpressionWithOptFromClauseOptWhereClauseOptGroupClauseOptHavingClauseOptOrderClauseOptLi_3201a72e
implements TableExpressionForm
uses Assertion
@visibility public.The table_expression SQL value; generated by bin/build-models.php.
$write = static fn (\SqlSemantics\Statement\Model\MySql\Value\TableExpressionWithOptFromClauseOptWhereClauseOptGroupClauseOptHavingClauseOptOrderClauseOptLi_3201a72e $value): string => \SqlSemantics\Statement\Writer::render($value);
$write instanceof \Closure // => trueProperties§
public OptFromClauseForm $frompublic OptWhereClauseForm $wherepublic OptGroupClauseForm $optGroupClausepublic OptHavingClauseForm $optHavingClausepublic OptOrderClauseForm $orderBypublic OptLimitClauseForm $optLimitClausepublic OptProcedureAnalyseClauseForm $optProcedureAnalyseClausepublic OptSelectLockTypeForm $optSelectLockTypepublic Comments $comments = new \SqlSemantics\Statement\Comments()Methods§
public function __construct(
public OptFromClauseForm $from,
public OptWhereClauseForm $where,
public OptGroupClauseForm $optGroupClause,
public OptHavingClauseForm $optHavingClause,
public OptOrderClauseForm $orderBy,
public OptLimitClauseForm $optLimitClause,
public OptProcedureAnalyseClauseForm $optProcedureAnalyseClause,
public OptSelectLockTypeForm $optSelectLockType,
public Comments $comments = new \SqlSemantics\Statement\Comments(),
)Supplies the SQL values of this form; comments are kept by the position of the symbol each precedes.
Parameters
$from | OptFromClauseForm | |
$where | OptWhereClauseForm | |
$optGroupClause | OptGroupClauseForm | |
$optHavingClause | OptHavingClauseForm | |
$orderBy | OptOrderClauseForm | |
$optLimitClause | OptLimitClauseForm | |
$optProcedureAnalyseClause | OptProcedureAnalyseClauseForm | |
$optSelectLockType | OptSelectLockTypeForm | |
$comments | Comments |
public function write(Writer $writer): voidWrites SQL entirely from this value's fields.
Parameters
$writer | Writer |
Calls 9
- method-call Writer::comments() line 48
- method-call OptFromClauseForm::write() line 49
- method-call OptWhereClauseForm::write() line 51
- method-call OptGroupClauseForm::write() line 53
- method-call OptHavingClauseForm::write() line 55
- method-call OptOrderClauseForm::write() line 57
- method-call OptLimitClauseForm::write() line 59
- method-call OptProcedureAnalyseClauseForm::write() line 61
- method-call OptSelectLockTypeForm::write() line 63
public function withFrom(OptFromClauseForm $from): selfReturns a copy with a new from, preserving every other field.
Parameters
$from | OptFromClauseForm |
Returns
selfCalls 1
- new
selfline 71
public function withWhere(OptWhereClauseForm $where): selfReturns a copy with a new where, preserving every other field.
Parameters
$where | OptWhereClauseForm |
Returns
selfCalls 1
- new
selfline 79
public function withOptGroupClause(OptGroupClauseForm $optGroupClause): selfReturns a copy with a new optGroupClause, preserving every other field.
Parameters
$optGroupClause | OptGroupClauseForm |
Returns
selfCalls 1
- new
selfline 87
public function withOptHavingClause(OptHavingClauseForm $optHavingClause): selfReturns a copy with a new optHavingClause, preserving every other field.
Parameters
$optHavingClause | OptHavingClauseForm |
Returns
selfCalls 1
- new
selfline 95
public function withOrderBy(OptOrderClauseForm $orderBy): selfReturns a copy with a new orderBy, preserving every other field.
Parameters
$orderBy | OptOrderClauseForm |
Returns
selfCalls 1
- new
selfline 103
public function withOptLimitClause(OptLimitClauseForm $optLimitClause): selfReturns a copy with a new optLimitClause, preserving every other field.
Parameters
$optLimitClause | OptLimitClauseForm |
Returns
selfCalls 1
- new
selfline 111
public function withOptProcedureAnalyseClause(OptProcedureAnalyseClauseForm $optProcedureAnalyseClause): selfReturns a copy with a new optProcedureAnalyseClause, preserving every other field.
Parameters
$optProcedureAnalyseClause | OptProcedureAnalyseClauseForm |
Returns
selfCalls 1
- new
selfline 119
public function withOptSelectLockType(OptSelectLockTypeForm $optSelectLockType): selfReturns a copy with a new optSelectLockType, preserving every other field.
Parameters
$optSelectLockType | OptSelectLockTypeForm |
Returns
selfCalls 1
- new
selfline 127