<?php
declare(strict_types=1);
namespace Doctrine\DBAL\Query;
final class SelectQuery
{
public function __construct(
private readonly bool $distinct,
private readonly array $columns,
private readonly array $from,
private readonly ?string $where,
private readonly array $groupBy,
private readonly ?string $having,
private readonly array $orderBy,
private readonly Limit $limit,
private readonly ?ForUpdate $forUpdate,
) {
}
public function isDistinct(): bool
{
return $this->distinct;
}
public function getColumns(): array
{
return $this->columns;
}
public function getFrom(): array
{
return $this->from;
}