classColConstraintElemWithUniqueOptUniqueNullTreatmentOptDefinitionOptConsTableSpace_27dcc042
final class ColConstraintElemWithUniqueOptUniqueNullTreatmentOptDefinitionOptConsTableSpace_27dcc042
implements ColConstraintForm, ColConstraintElemForm
uses Assertion
Public API: explicitly declared with
@visibility public.The ColConstraintElem SQL value; generated by bin/build-models.php.
$write = static fn (\SqlSemantics\Statement\Model\PostgreSql\Value\ColConstraintElemWithUniqueOptUniqueNullTreatmentOptDefinitionOptConsTableSpace_27dcc042 $value): string => \SqlSemantics\Statement\Writer::render($value);
$write instanceof \Closure // => trueProperties§
public OptUniqueNullTreatmentForm $optUniqueNullTreatmentpublic OptDefinitionForm $optDefinitionpublic OptConsTableSpaceForm $optConsTableSpacepublic Comments $comments = new \SqlSemantics\Statement\Comments()Methods§
public function __construct(
public OptUniqueNullTreatmentForm $optUniqueNullTreatment,
public OptDefinitionForm $optDefinition,
public OptConsTableSpaceForm $optConsTableSpace,
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
$optUniqueNullTreatment | OptUniqueNullTreatmentForm | |
$optDefinition | OptDefinitionForm | |
$optConsTableSpace | OptConsTableSpaceForm | |
$comments | Comments |
Calls 3
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 OptUniqueNullTreatmentForm::write() line 41
- method-call OptDefinitionForm::write() line 43
- method-call OptConsTableSpaceForm::write() line 45
public function withOptUniqueNullTreatment(OptUniqueNullTreatmentForm $optUniqueNullTreatment): selfReturns a copy with a new optUniqueNullTreatment, preserving every other field.
Parameters
$optUniqueNullTreatment | OptUniqueNullTreatmentForm |
Returns
selfCalls 1
- new
selfline 53
public function withOptDefinition(OptDefinitionForm $optDefinition): selfReturns a copy with a new optDefinition, preserving every other field.
Parameters
$optDefinition | OptDefinitionForm |
Returns
selfCalls 1
- new
selfline 61
public function withOptConsTableSpace(OptConsTableSpaceForm $optConsTableSpace): selfReturns a copy with a new optConsTableSpace, preserving every other field.
Parameters
$optConsTableSpace | OptConsTableSpaceForm |
Returns
selfCalls 1
- new
selfline 69