classLimitClauseWithLimitSelectLimitValueSelectOffsetValue_95a37e6a
final class LimitClauseWithLimitSelectLimitValueSelectOffsetValue_95a37e6a
implements LimitClauseForm, OptSelectLimitForm, SelectLimitForm
uses Assertion
Public API: explicitly declared with
@visibility public.The limit_clause SQL value; generated by bin/build-models.php.
$write = static fn (\SqlSemantics\Statement\Model\PostgreSql\Value\LimitClauseWithLimitSelectLimitValueSelectOffsetValue_95a37e6a $value): string => \SqlSemantics\Statement\Writer::render($value);
$write instanceof \Closure // => trueProperties§
public SelectLimitValueForm $selectLimitValuepublic SelectOffsetValueForm $selectOffsetValuepublic Comments $comments = new \SqlSemantics\Statement\Comments()Methods§
public function __construct(
public SelectLimitValueForm $selectLimitValue,
public SelectOffsetValueForm $selectOffsetValue,
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
$selectLimitValue | SelectLimitValueForm | |
$selectOffsetValue | SelectOffsetValueForm | |
$comments | Comments |
Calls 3
- new Comments line 25
- method-call LimitClauseWithLimitSelectLimitValueSelectOffsetValue_95a37e6a::assert() line 27
- static-call Contracts::contains() line 27
public function write(Writer $writer): voidWrites SQL entirely from this value's fields.
Parameters
$writer | Writer |
Calls 4
- method-call Writer::comments() line 36
- method-call Writer::append() line 37
- method-call SelectLimitValueForm::write() line 39
- method-call SelectOffsetValueForm::write() line 43
public function withSelectLimitValue(SelectLimitValueForm $selectLimitValue): selfReturns a copy with a new selectLimitValue, preserving every other field.
Parameters
$selectLimitValue | SelectLimitValueForm |
Returns
selfCalls 1
- new
selfline 51
public function withSelectOffsetValue(SelectOffsetValueForm $selectOffsetValue): selfReturns a copy with a new selectOffsetValue, preserving every other field.
Parameters
$selectOffsetValue | SelectOffsetValueForm |
Returns
selfCalls 1
- new
selfline 59