classFuncArgExprWithParamNameColonEqualsAExpr_16937048
final class FuncArgExprWithParamNameColonEqualsAExpr_16937048
implements FuncArgExprForm, FuncArgListForm, FuncArgListOptForm
uses Assertion
Public API: explicitly declared with
@visibility public.The func_arg_expr SQL value; generated by bin/build-models.php.
$write = static fn (\SqlSemantics\Statement\Model\PostgreSql\Value\FuncArgExprWithParamNameColonEqualsAExpr_16937048 $value): string => \SqlSemantics\Statement\Writer::render($value);
$write instanceof \Closure // => trueProperties§
public ParamNameForm $paramNamepublic string $colonEqualspublic AExprForm $aExprpublic Comments $comments = new \SqlSemantics\Statement\Comments()Methods§
public function __construct(
public ParamNameForm $paramName,
public string $colonEquals,
public AExprForm $aExpr,
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
$paramName | ParamNameForm | |
$colonEquals | string | |
$aExpr | AExprForm | |
$comments | Comments |
Calls 5
- new Comments line 26
- method-call FuncArgExprWithParamNameColonEqualsAExpr_16937048::assert() line 28
- static-call Contracts::contains() line 28
- method-call FuncArgExprWithParamNameColonEqualsAExpr_16937048::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 ParamNameForm::write() line 39
- method-call Writer::append() line 41
- method-call AExprForm::write() line 43
public function withParamName(ParamNameForm $paramName): selfReturns a copy with a new paramName, preserving every other field.
Parameters
$paramName | ParamNameForm |
Returns
selfCalls 1
- new
selfline 51
public function withColonEquals(string $colonEquals): selfReturns a copy with a new colonEquals, preserving every other field.
Parameters
$colonEquals | string |
Returns
selfCalls 1
- new
selfline 59
public function withAExpr(AExprForm $aExpr): self