| 1 | <?php |
||
| 20 | class Query |
||
| 21 | { |
||
| 22 | /** |
||
| 23 | * @var string |
||
| 24 | */ |
||
| 25 | private $sql; |
||
| 26 | |||
| 27 | /** |
||
| 28 | * @var ParameterCollectionInterface |
||
| 29 | */ |
||
| 30 | private $parameterCollection; |
||
| 31 | |||
| 32 | /** |
||
| 33 | * @param string $sql |
||
| 34 | * @param array $parameters |
||
| 35 | */ |
||
| 36 | 3 | public function __construct($sql, array $parameters = []) |
|
| 41 | |||
| 42 | /** |
||
| 43 | * @return string |
||
| 44 | */ |
||
| 45 | 1 | public function getSQL() |
|
| 49 | |||
| 50 | /** |
||
| 51 | * @return ParameterCollectionInterface |
||
| 52 | */ |
||
| 53 | 2 | public function getParameters() |
|
| 57 | |||
| 58 | /** |
||
| 59 | * @param int|string $name |
||
| 60 | * @param mixed $value |
||
| 61 | * |
||
| 62 | * @return $this |
||
| 63 | */ |
||
| 64 | 1 | public function setParameter($name, $value) |
|
| 70 | } |