classKeyPartWithIdentNumOptOrderingDirection_49f320b2
final class KeyPartWithIdentNumOptOrderingDirection_49f320b2
implements KeyListForm, KeyListWithExpressionForm, KeyPartForm, KeyPartWithExpressionForm
uses Assertion
Public API: explicitly declared with
@visibility public.The key_part SQL value; generated by bin/build-models.php.
$write = static fn (\SqlSemantics\Statement\Model\MySql\Value\KeyPartWithIdentNumOptOrderingDirection_49f320b2 $value): string => \SqlSemantics\Statement\Writer::render($value);
$write instanceof \Closure // => trueProperties§
public IdentForm $identpublic string $valuepublic OptOrderingDirectionForm $optOrderingDirectionpublic Comments $comments = new \SqlSemantics\Statement\Comments()Methods§
public function __construct(
public IdentForm $ident,
public string $value,
public OptOrderingDirectionForm $optOrderingDirection,
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
$ident | IdentForm | |
$value | string | |
$optOrderingDirection | OptOrderingDirectionForm | |
$comments | Comments |
Calls 5
- new Comments line 26
- method-call KeyPartWithIdentNumOptOrderingDirection_49f320b2::assert() line 28
- static-call Contracts::contains() line 28
- method-call KeyPartWithIdentNumOptOrderingDirection_49f320b2::assertMatchesPattern() line 29
- class-const Contracts::SPELLINGS() line 29
public function write(Writer $writer): voidWrites SQL entirely from this value's fields.
Parameters
$writer | Writer |
Calls 4
- method-call Writer::comments() line 38
- method-call IdentForm::write() line 39
- method-call Writer::append() line 41
- method-call OptOrderingDirectionForm::write() line 47
public function withIdent(IdentForm $ident): selfpublic function withValue(string $value): selfReturns a copy with a new value, preserving every other field.
Parameters
$value | string |
Returns
selfCalls 1
- new
selfline 63
public function withOptOrderingDirection(OptOrderingDirectionForm $optOrderingDirection): selfReturns a copy with a new optOrderingDirection, preserving every other field.
Parameters
$optOrderingDirection | OptOrderingDirectionForm |
Returns
selfCalls 1
- new
selfline 71