classFuncArgExprWithParamNameEqualsGreaterAExpr_89e24c28
final class FuncArgExprWithParamNameEqualsGreaterAExpr_89e24c28
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\FuncArgExprWithParamNameEqualsGreaterAExpr_89e24c28 $value): string => \SqlSemantics\Statement\Writer::render($value);
$write instanceof \Closure // => trueProperties§
public ParamNameForm $paramNamepublic string $equalsGreaterpublic AExprForm $aExprpublic Comments $comments = new \SqlSemantics\Statement\Comments()Methods§
public function __construct(
public ParamNameForm $paramName,
public string $equalsGreater,
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 | |
$equalsGreater | string | |
$aExpr | AExprForm | |
$comments | Comments |
Calls 5
- new Comments line 26
- method-call FuncArgExprWithParamNameEqualsGreaterAExpr_89e24c28::assert() line 28
- static-call Contracts::contains() line 28
- method-call FuncArgExprWithParamNameEqualsGreaterAExpr_89e24c28::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 withEqualsGreater(string $equalsGreater): selfReturns a copy with a new equalsGreater, preserving every other field.
Parameters
$equalsGreater | string |
Returns
selfCalls 1
- new
selfline 59
public function withAExpr(AExprForm $aExpr): self