final class OneselectWithSelectDistinctSelcollistFromWhereOptGroupbyOptHavingOptOrderbyOptLimitOpt_218e0475
    implements CmdForm, CmdxForm, OneselectForm, SelectForm, SelectnowithForm, Command
    uses Assertion
Public API: explicitly declared with @visibility public.

The oneselect SQL value; generated by bin/build-models.php.

Accept a structured SQL valuedoctest
$write = static fn (\SqlSemantics\Statement\Model\Sqlite\Value\OneselectWithSelectDistinctSelcollistFromWhereOptGroupbyOptHavingOptOrderbyOptLimitOpt_218e0475 $value): string => \SqlSemantics\Statement\Writer::render($value);
    $write instanceof \Closure // => true

Properties§

public DistinctForm $distinct
public SelcollistForm $projections
public FromForm $from
public WhereOptForm $where
public GroupbyOptForm $groupBy
public HavingOptForm $having
public OrderbyOptForm $orderBy
public LimitOptForm $pagination
public Comments $comments = new \SqlSemantics\Statement\Comments()

Methods§

public function __construct(
    public DistinctForm $distinct,
    public SelcollistForm $projections,
    public FromForm $from,
    public WhereOptForm $where,
    public GroupbyOptForm $groupBy,
    public HavingOptForm $having,
    public OrderbyOptForm $orderBy,
    public LimitOptForm $pagination,
    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

$distinctDistinctForm
$projectionsSelcollistForm
$fromFromForm
$whereWhereOptForm
$groupByGroupbyOptForm
$havingHavingOptForm
$orderByOrderbyOptForm
$paginationLimitOptForm
$commentsComments
Calls 3
public function write(Writer $writer): void

Writes SQL entirely from this value's fields.

Parameters

$writerWriter
Calls 10
public function withDistinct(DistinctForm $distinct): self

Returns a copy with a new distinct, preserving every other field.

Parameters

$distinctDistinctForm

Returns

self
Calls 1
public function withProjections(SelcollistForm $projections): self

Returns a copy with a new projections, preserving every other field.

Parameters

$projectionsSelcollistForm

Returns

self
Calls 1
public function withFrom(FromForm $from): self

Returns a copy with a new from, preserving every other field.

Parameters

Returns

self
Calls 1
public function withWhere(WhereOptForm $where): self

Returns a copy with a new where, preserving every other field.

Parameters

Returns

self
Calls 1
public function withGroupBy(GroupbyOptForm $groupBy): self

Returns a copy with a new groupBy, preserving every other field.

Parameters

Returns

self
Calls 1
public function withHaving(HavingOptForm $having): self

Returns a copy with a new having, preserving every other field.

Parameters

Returns

self
Calls 1
public function withOrderBy(OrderbyOptForm $orderBy): self

Returns a copy with a new orderBy, preserving every other field.

Parameters

Returns

self
Calls 1
public function withPagination(LimitOptForm $pagination): self

Returns a copy with a new pagination, preserving every other field.

Parameters

$paginationLimitOptForm

Returns

self
Calls 1
public function withComments(Comments $comments): self

Returns a copy with a new comments, preserving every other field.

Parameters

$commentsComments

Returns

self
Calls 1

Test cases 2§

Test cases that cover or call this symbol, from the coverage report and from the analyzed test sources.

Other tests reaching this symbol 2