classExplainStmtWithDescribeCommandOptExplainOptionsIntoIdentOrTextExplainableStmt_6a8d8cd5
final class ExplainStmtWithDescribeCommandOptExplainOptionsIntoIdentOrTextExplainableStmt_6a8d8cd5
implements EvSqlStmtForm, EvSqlStmtInnerForm, ExplainStmtForm, SimpleStatementForm, SimpleStatementOrBeginForm, SpProcStmtForm, SpProcStmtStatementForm, StoredRoutineBodyForm, Command
uses Assertion
Public API: explicitly declared with
@visibility public.The explain_stmt SQL value; generated by bin/build-models.php.
$write = static fn (\SqlSemantics\Statement\Model\MySql\Value\ExplainStmtWithDescribeCommandOptExplainOptionsIntoIdentOrTextExplainableStmt_6a8d8cd5 $value): string => \SqlSemantics\Statement\Writer::render($value);
$write instanceof \Closure // => trueProperties§
public DescribeCommandForm $describeCommandpublic OptExplainOptionsForm $optExplainOptionspublic IdentOrTextForm $identOrTextpublic ExplainableStmtForm $explainableStmtpublic Comments $comments = new \SqlSemantics\Statement\Comments()Methods§
public function __construct(
public DescribeCommandForm $describeCommand,
public OptExplainOptionsForm $optExplainOptions,
public IdentOrTextForm $identOrText,
public ExplainableStmtForm $explainableStmt,
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
$describeCommand | DescribeCommandForm | |
$optExplainOptions | OptExplainOptionsForm | |
$identOrText | IdentOrTextForm | |
$explainableStmt | ExplainableStmtForm | |
$comments | Comments |
Calls 3
public function write(Writer $writer): voidWrites SQL entirely from this value's fields.
Parameters
$writer | Writer |
Calls 6
- method-call Writer::comments() line 40
- method-call DescribeCommandForm::write() line 41
- method-call OptExplainOptionsForm::write() line 43
- method-call Writer::append() line 45
- method-call IdentOrTextForm::write() line 49
- method-call ExplainableStmtForm::write() line 51
public function withDescribeCommand(DescribeCommandForm $describeCommand): selfReturns a copy with a new describeCommand, preserving every other field.
Parameters
$describeCommand | DescribeCommandForm |
Returns
selfCalls 1
- new
selfline 59
public function withOptExplainOptions(OptExplainOptionsForm $optExplainOptions): selfReturns a copy with a new optExplainOptions, preserving every other field.
Parameters
$optExplainOptions | OptExplainOptionsForm |
Returns
selfCalls 1
- new
selfline 67
public function withIdentOrText(IdentOrTextForm $identOrText): selfReturns a copy with a new identOrText, preserving every other field.
Parameters
$identOrText | IdentOrTextForm |
Returns
selfCalls 1
- new
selfline 75
public function withExplainableStmt(ExplainableStmtForm $explainableStmt): selfReturns a copy with a new explainableStmt, preserving every other field.
Parameters
$explainableStmt | ExplainableStmtForm |
Returns
selfCalls 1
- new
selfline 83