classExplainStmtWithDescribeCommandOptExplainOptionsExplainableStmt_c1c9381c
final class ExplainStmtWithDescribeCommandOptExplainOptionsExplainableStmt_c1c9381c
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\ExplainStmtWithDescribeCommandOptExplainOptionsExplainableStmt_c1c9381c $value): string => \SqlSemantics\Statement\Writer::render($value);
$write instanceof \Closure // => trueProperties§
public DescribeCommandForm $describeCommandpublic OptExplainOptionsForm $optExplainOptionspublic ExplainableStmtForm $explainableStmtpublic Comments $comments = new \SqlSemantics\Statement\Comments()Methods§
public function __construct(
public DescribeCommandForm $describeCommand,
public OptExplainOptionsForm $optExplainOptions,
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 | |
$explainableStmt | ExplainableStmtForm | |
$comments | Comments |
Calls 3
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 DescribeCommandForm::write() line 39
- method-call OptExplainOptionsForm::write() line 41
- method-call ExplainableStmtForm::write() line 43
public function withDescribeCommand(DescribeCommandForm $describeCommand): selfReturns a copy with a new describeCommand, preserving every other field.
Parameters
$describeCommand | DescribeCommandForm |
Returns
selfCalls 1
- new
selfline 51
public function withOptExplainOptions(OptExplainOptionsForm $optExplainOptions): selfReturns a copy with a new optExplainOptions, preserving every other field.
Parameters
$optExplainOptions | OptExplainOptionsForm |
Returns
selfCalls 1
- new
selfline 59
public function withExplainableStmt(ExplainableStmtForm $explainableStmt): selfReturns a copy with a new explainableStmt, preserving every other field.
Parameters
$explainableStmt | ExplainableStmtForm |
Returns
selfCalls 1
- new
selfline 67