classPartElemWithAExprOptCollateOptQualifiedName_21268f5f
final class PartElemWithAExprOptCollateOptQualifiedName_21268f5f
implements PartElemForm, PartParamsForm
uses Assertion
Public API: explicitly declared with
@visibility public.The part_elem SQL value; generated by bin/build-models.php.
$write = static fn (\SqlSemantics\Statement\Model\PostgreSql\Value\PartElemWithAExprOptCollateOptQualifiedName_21268f5f $value): string => \SqlSemantics\Statement\Writer::render($value);
$write instanceof \Closure // => trueProperties§
public AExprForm $aExprpublic OptCollateForm $optCollatepublic OptQualifiedNameForm $optQualifiedNamepublic Comments $comments = new \SqlSemantics\Statement\Comments()Methods§
public function __construct(
public AExprForm $aExpr,
public OptCollateForm $optCollate,
public OptQualifiedNameForm $optQualifiedName,
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
$aExpr | AExprForm | |
$optCollate | OptCollateForm | |
$optQualifiedName | OptQualifiedNameForm | |
$comments | Comments |
Calls 3
- new Comments line 26
- method-call PartElemWithAExprOptCollateOptQualifiedName_21268f5f::assert() line 28
- static-call Contracts::contains() line 28
public function write(Writer $writer): voidWrites SQL entirely from this value's fields.
Parameters
$writer | Writer |
Calls 5
- method-call Writer::comments() line 38
- method-call Writer::append() line 39
- method-call AExprForm::write() line 41
- method-call OptCollateForm::write() line 45
- method-call OptQualifiedNameForm::write() line 47
public function withAExpr(AExprForm $aExpr): selfpublic function withOptCollate(OptCollateForm $optCollate): selfReturns a copy with a new optCollate, preserving every other field.
Parameters
$optCollate | OptCollateForm |
Returns
selfCalls 1
- new
selfline 63
public function withOptQualifiedName(OptQualifiedNameForm $optQualifiedName): selfReturns a copy with a new optQualifiedName, preserving every other field.
Parameters
$optQualifiedName | OptQualifiedNameForm |
Returns
selfCalls 1
- new
selfline 71