Expression
2 years ago
ForUpdate
2 years ago
ForUpdate.php
2 years ago
Limit.php
2 years ago
QueryBuilder.php
2 years ago
QueryException.php
2 years ago
SelectQuery.php
2 years ago
index.php
2 years ago
SelectQuery.php
64 lines
| 1 | <?php |
| 2 | namespace MailPoetVendor\Doctrine\DBAL\Query; |
| 3 | if (!defined('ABSPATH')) exit; |
| 4 | final class SelectQuery |
| 5 | { |
| 6 | private bool $distinct; |
| 7 | private array $columns; |
| 8 | private array $from; |
| 9 | private ?string $where; |
| 10 | private array $groupBy; |
| 11 | private ?string $having; |
| 12 | private array $orderBy; |
| 13 | private Limit $limit; |
| 14 | private ?ForUpdate $forUpdate; |
| 15 | public function __construct(bool $distinct, array $columns, array $from, ?string $where, array $groupBy, ?string $having, array $orderBy, Limit $limit, ?ForUpdate $forUpdate) |
| 16 | { |
| 17 | $this->distinct = $distinct; |
| 18 | $this->columns = $columns; |
| 19 | $this->from = $from; |
| 20 | $this->where = $where; |
| 21 | $this->groupBy = $groupBy; |
| 22 | $this->having = $having; |
| 23 | $this->orderBy = $orderBy; |
| 24 | $this->limit = $limit; |
| 25 | $this->forUpdate = $forUpdate; |
| 26 | } |
| 27 | public function isDistinct() : bool |
| 28 | { |
| 29 | return $this->distinct; |
| 30 | } |
| 31 | public function getColumns() : array |
| 32 | { |
| 33 | return $this->columns; |
| 34 | } |
| 35 | public function getFrom() : array |
| 36 | { |
| 37 | return $this->from; |
| 38 | } |
| 39 | public function getWhere() : ?string |
| 40 | { |
| 41 | return $this->where; |
| 42 | } |
| 43 | public function getGroupBy() : array |
| 44 | { |
| 45 | return $this->groupBy; |
| 46 | } |
| 47 | public function getHaving() : ?string |
| 48 | { |
| 49 | return $this->having; |
| 50 | } |
| 51 | public function getOrderBy() : array |
| 52 | { |
| 53 | return $this->orderBy; |
| 54 | } |
| 55 | public function getLimit() : Limit |
| 56 | { |
| 57 | return $this->limit; |
| 58 | } |
| 59 | public function getForUpdate() : ?ForUpdate |
| 60 | { |
| 61 | return $this->forUpdate; |
| 62 | } |
| 63 | } |
| 64 |