diff options
| author | polo <ordipolo@gmx.fr> | 2024-08-13 23:45:21 +0200 |
|---|---|---|
| committer | polo <ordipolo@gmx.fr> | 2024-08-13 23:45:21 +0200 |
| commit | bf6655a534a6775d30cafa67bd801276bda1d98d (patch) | |
| tree | c6381e3f6c81c33eab72508f410b165ba05f7e9c /vendor/doctrine/dbal/src/Query/SelectQuery.php | |
| parent | 94d67a4b51f8e62e7d518cce26a526ae1ec48278 (diff) | |
| download | AppliGestionPHP-bf6655a534a6775d30cafa67bd801276bda1d98d.tar.gz AppliGestionPHP-bf6655a534a6775d30cafa67bd801276bda1d98d.tar.bz2 AppliGestionPHP-bf6655a534a6775d30cafa67bd801276bda1d98d.zip | |
VERSION 0.2 doctrine ORM et entités
Diffstat (limited to 'vendor/doctrine/dbal/src/Query/SelectQuery.php')
| -rw-r--r-- | vendor/doctrine/dbal/src/Query/SelectQuery.php | 78 |
1 files changed, 78 insertions, 0 deletions
diff --git a/vendor/doctrine/dbal/src/Query/SelectQuery.php b/vendor/doctrine/dbal/src/Query/SelectQuery.php new file mode 100644 index 0000000..e6ef9f2 --- /dev/null +++ b/vendor/doctrine/dbal/src/Query/SelectQuery.php | |||
| @@ -0,0 +1,78 @@ | |||
| 1 | <?php | ||
| 2 | |||
| 3 | declare(strict_types=1); | ||
| 4 | |||
| 5 | namespace Doctrine\DBAL\Query; | ||
| 6 | |||
| 7 | final class SelectQuery | ||
| 8 | { | ||
| 9 | /** | ||
| 10 | * @internal This class should be instantiated only by {@link QueryBuilder}. | ||
| 11 | * | ||
| 12 | * @param string[] $columns | ||
| 13 | * @param string[] $from | ||
| 14 | * @param string[] $groupBy | ||
| 15 | * @param string[] $orderBy | ||
| 16 | */ | ||
| 17 | public function __construct( | ||
| 18 | private readonly bool $distinct, | ||
| 19 | private readonly array $columns, | ||
| 20 | private readonly array $from, | ||
| 21 | private readonly ?string $where, | ||
| 22 | private readonly array $groupBy, | ||
| 23 | private readonly ?string $having, | ||
| 24 | private readonly array $orderBy, | ||
| 25 | private readonly Limit $limit, | ||
| 26 | private readonly ?ForUpdate $forUpdate, | ||
| 27 | ) { | ||
| 28 | } | ||
| 29 | |||
| 30 | public function isDistinct(): bool | ||
| 31 | { | ||
| 32 | return $this->distinct; | ||
| 33 | } | ||
| 34 | |||
| 35 | /** @return string[] */ | ||
| 36 | public function getColumns(): array | ||
| 37 | { | ||
| 38 | return $this->columns; | ||
| 39 | } | ||
| 40 | |||
| 41 | /** @return string[] */ | ||
| 42 | public function getFrom(): array | ||
| 43 | { | ||
| 44 | return $this->from; | ||
| 45 | } | ||
| 46 | |||
| 47 | public function getWhere(): ?string | ||
| 48 | { | ||
| 49 | return $this->where; | ||
| 50 | } | ||
| 51 | |||
| 52 | /** @return string[] */ | ||
| 53 | public function getGroupBy(): array | ||
| 54 | { | ||
| 55 | return $this->groupBy; | ||
| 56 | } | ||
| 57 | |||
| 58 | public function getHaving(): ?string | ||
| 59 | { | ||
| 60 | return $this->having; | ||
| 61 | } | ||
| 62 | |||
| 63 | /** @return string[] */ | ||
| 64 | public function getOrderBy(): array | ||
| 65 | { | ||
| 66 | return $this->orderBy; | ||
| 67 | } | ||
| 68 | |||
| 69 | public function getLimit(): Limit | ||
| 70 | { | ||
| 71 | return $this->limit; | ||
| 72 | } | ||
| 73 | |||
| 74 | public function getForUpdate(): ?ForUpdate | ||
| 75 | { | ||
| 76 | return $this->forUpdate; | ||
| 77 | } | ||
| 78 | } | ||
