classSpLabeledBlockWithLabelIdentSpBlockContentSpOptLabel_20e5e072
final class SpLabeledBlockWithLabelIdentSpBlockContentSpOptLabel_20e5e072
implements EvSqlStmtForm, EvSqlStmtInnerForm, SpLabeledBlockForm, SpProcStmtForm, StoredRoutineBodyForm
uses Assertion
Public API: explicitly declared with
@visibility public.The sp_labeled_block SQL value; generated by bin/build-models.php.
$write = static fn (\SqlSemantics\Statement\Model\MySql\Value\SpLabeledBlockWithLabelIdentSpBlockContentSpOptLabel_20e5e072 $value): string => \SqlSemantics\Statement\Writer::render($value);
$write instanceof \Closure // => trueProperties§
public LabelIdentForm $labelIdentpublic SpBlockContentForm $spBlockContentpublic SpOptLabelForm $spOptLabelpublic Comments $comments = new \SqlSemantics\Statement\Comments()Methods§
public function __construct(
public LabelIdentForm $labelIdent,
public SpBlockContentForm $spBlockContent,
public SpOptLabelForm $spOptLabel,
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
$labelIdent | LabelIdentForm | |
$spBlockContent | SpBlockContentForm | |
$spOptLabel | SpOptLabelForm | |
$comments | Comments |
Calls 3
- new Comments line 26
- method-call SpLabeledBlockWithLabelIdentSpBlockContentSpOptLabel_20e5e072::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 LabelIdentForm::write() line 39
- method-call Writer::append() line 41
- method-call SpBlockContentForm::write() line 43
- method-call SpOptLabelForm::write() line 45
public function withLabelIdent(LabelIdentForm $labelIdent): selfReturns a copy with a new labelIdent, preserving every other field.
Parameters
$labelIdent | LabelIdentForm |
Returns
selfCalls 1
- new
selfline 53
public function withSpBlockContent(SpBlockContentForm $spBlockContent): selfReturns a copy with a new spBlockContent, preserving every other field.
Parameters
$spBlockContent | SpBlockContentForm |
Returns
selfCalls 1
- new
selfline 61
public function withSpOptLabel(SpOptLabelForm $spOptLabel): selfReturns a copy with a new spOptLabel, preserving every other field.
Parameters
$spOptLabel | SpOptLabelForm |
Returns
selfCalls 1
- new
selfline 69