<?php declare(strict_types=1); namespace Doctrine\DBAL; use Doctrine\DBAL\Types\Type; /** * An SQL query together with its bound parameters. * * @psalm-immutable */ final class Query { /** * The SQL query. */ private string $sql; /** * The parameters bound to the query. * * @var array<mixed> */ private array $params; /** * The types of the parameters bound to the query. * * @var array<Type|int|string|null> */ private array $types; /** * @param array<mixed> $params * @param array<Type|int|string|null> $types * * @psalm-suppress ImpurePropertyAssignment */ public function __construct(string $sql, array $params, array $types) { $this->sql = $sql; $this->params = $params; $this->types = $types; } public function getSQL(): string { return $this->sql; } /** @return array<mixed> */ public function getParams(): array { return $this->params; } /** @return array<Type|int|string|null> */ public function getTypes(): array { return $this->types; } }
Name | Type | Size | Permission | Actions |
---|---|---|---|---|
ArrayParameters | Folder | 0755 |
|
|
Cache | Folder | 0755 |
|
|
Connections | Folder | 0755 |
|
|
Driver | Folder | 0755 |
|
|
Event | Folder | 0755 |
|
|
Exception | Folder | 0755 |
|
|
Id | Folder | 0755 |
|
|
Logging | Folder | 0755 |
|
|
Platforms | Folder | 0755 |
|
|
Portability | Folder | 0755 |
|
|
Query | Folder | 0755 |
|
|
SQL | Folder | 0755 |
|
|
Schema | Folder | 0755 |
|
|
Tools | Folder | 0755 |
|
|
Types | Folder | 0755 |
|
|
ArrayParameterType.php | File | 982 B | 0644 |
|
ColumnCase.php | File | 429 B | 0644 |
|
Configuration.php | File | 6.52 KB | 0644 |
|
Connection.php | File | 62.79 KB | 0644 |
|
ConnectionException.php | File | 917 B | 0644 |
|
Driver.php | File | 1.62 KB | 0644 |
|
DriverManager.php | File | 9.06 KB | 0644 |
|
Events.php | File | 1.58 KB | 0644 |
|
Exception.php | File | 4.95 KB | 0644 |
|
ExpandArrayParameters.php | File | 3.69 KB | 0644 |
|
FetchMode.php | File | 333 B | 0644 |
|
LockMode.php | File | 419 B | 0644 |
|
ParameterType.php | File | 982 B | 0644 |
|
Query.php | File | 1.16 KB | 0644 |
|
Result.php | File | 7.85 KB | 0644 |
|
Statement.php | File | 7.46 KB | 0644 |
|
TransactionIsolationLevel.php | File | 601 B | 0644 |
|
VersionAwarePlatformDriver.php | File | 1.02 KB | 0644 |
|