ArrayParameters
2 years ago
Cache
9 months ago
Driver
9 months ago
Event
2 years ago
Exception
9 months ago
Id
2 years ago
Logging
2 years ago
Platforms
9 months ago
Portability
2 years ago
Query
2 years ago
SQL
9 months ago
Schema
8 months ago
Types
9 months ago
ArrayParameterType.php
2 years ago
ColumnCase.php
2 years ago
Configuration.php
9 months ago
Connection.php
9 months ago
ConnectionException.php
2 years ago
Driver.php
2 years ago
DriverManager.php
2 years ago
Events.php
2 years ago
Exception.php
2 years ago
ExpandArrayParameters.php
2 years ago
FetchMode.php
2 years ago
LockMode.php
2 years ago
ParameterType.php
2 years ago
Query.php
2 years ago
Result.php
2 years ago
Statement.php
2 years ago
TransactionIsolationLevel.php
2 years ago
VersionAwarePlatformDriver.php
2 years ago
index.php
2 years ago
Query.php
30 lines
| 1 | <?php |
| 2 | declare (strict_types=1); |
| 3 | namespace MailPoetVendor\Doctrine\DBAL; |
| 4 | if (!defined('ABSPATH')) exit; |
| 5 | use MailPoetVendor\Doctrine\DBAL\Types\Type; |
| 6 | final class Query |
| 7 | { |
| 8 | private string $sql; |
| 9 | private array $params; |
| 10 | private array $types; |
| 11 | public function __construct(string $sql, array $params, array $types) |
| 12 | { |
| 13 | $this->sql = $sql; |
| 14 | $this->params = $params; |
| 15 | $this->types = $types; |
| 16 | } |
| 17 | public function getSQL() : string |
| 18 | { |
| 19 | return $this->sql; |
| 20 | } |
| 21 | public function getParams() : array |
| 22 | { |
| 23 | return $this->params; |
| 24 | } |
| 25 | public function getTypes() : array |
| 26 | { |
| 27 | return $this->types; |
| 28 | } |
| 29 | } |
| 30 |