classShowParamWithOptFullColumnsFromOrInTableIdentOptDbWildAndWhere_f45e288e
final class ShowParamWithOptFullColumnsFromOrInTableIdentOptDbWildAndWhere_f45e288e
implements ShowParamForm
uses Assertion
Public API: explicitly declared with
@visibility public.The show_param SQL value; generated by bin/build-models.php.
$write = static fn (\SqlSemantics\Statement\Model\MySql\Value\ShowParamWithOptFullColumnsFromOrInTableIdentOptDbWildAndWhere_f45e288e $value): string => \SqlSemantics\Statement\Writer::render($value);
$write instanceof \Closure // => trueProperties§
public OptFullForm $optFullpublic string $columnspublic FromOrInForm $fromOrInpublic TableIdentForm $tableIdentpublic OptDbForm $optDbpublic WildAndWhereForm $wildAndWherepublic Comments $comments = new \SqlSemantics\Statement\Comments()Methods§
public function __construct(
public OptFullForm $optFull,
public string $columns,
public FromOrInForm $fromOrIn,
public TableIdentForm $tableIdent,
public OptDbForm $optDb,
public WildAndWhereForm $wildAndWhere,
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
$optFull | OptFullForm | |
$columns | string | |
$fromOrIn | FromOrInForm | |
$tableIdent | TableIdentForm | |
$optDb | OptDbForm | |
$wildAndWhere | WildAndWhereForm | |
$comments | Comments |
Calls 5
- new Comments line 29
- method-call ShowParamWithOptFullColumnsFromOrInTableIdentOptDbWildAndWhere_f45e288e::assert() line 31
- static-call Contracts::contains() line 31
- method-call ShowParamWithOptFullColumnsFromOrInTableIdentOptDbWildAndWhere_f45e288e::assertMatchesPattern() line 32
- class-const Contracts::SPELLINGS() line 32
public function write(Writer $writer): voidWrites SQL entirely from this value's fields.
Parameters
$writer | Writer |
Calls 7
- method-call Writer::comments() line 44
- method-call OptFullForm::write() line 45
- method-call Writer::append() line 47
- method-call FromOrInForm::write() line 49
- method-call TableIdentForm::write() line 51
- method-call OptDbForm::write() line 53
- method-call WildAndWhereForm::write() line 55
public function withOptFull(OptFullForm $optFull): selfReturns a copy with a new optFull, preserving every other field.
Parameters
$optFull | OptFullForm |
Returns
selfCalls 1
- new
selfline 63
public function withColumns(string $columns): selfReturns a copy with a new columns, preserving every other field.
Parameters
$columns | string |
Returns
selfCalls 1
- new
selfline 71
public function withFromOrIn(FromOrInForm $fromOrIn): selfReturns a copy with a new fromOrIn, preserving every other field.
Parameters
$fromOrIn | FromOrInForm |
Returns
selfCalls 1
- new
selfline 79
public function withTableIdent(TableIdentForm $tableIdent): selfReturns a copy with a new tableIdent, preserving every other field.
Parameters
$tableIdent | TableIdentForm |
Returns
selfCalls 1
- new
selfline 87
public function withOptDb(OptDbForm $optDb): selfpublic function withWildAndWhere(WildAndWhereForm $wildAndWhere): selfReturns a copy with a new wildAndWhere, preserving every other field.
Parameters
$wildAndWhere | WildAndWhereForm |
Returns
selfCalls 1
- new
selfline 103