| Total Complexity | 5 |
| Total Lines | 42 |
| Duplicated Lines | 0 % |
| Coverage | 100% |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 10 | final class Query |
||
| 11 | { |
||
| 12 | /** @var string */ |
||
| 13 | private $statement; |
||
| 14 | |||
| 15 | /** @var mixed[] */ |
||
| 16 | private $parameters; |
||
| 17 | |||
| 18 | /** @var mixed[] */ |
||
| 19 | private $types; |
||
| 20 | |||
| 21 | /** |
||
| 22 | * @param mixed[] $parameters |
||
| 23 | * @param mixed[] $types |
||
| 24 | */ |
||
| 25 | 25 | public function __construct(string $statement, array $parameters = [], array $types = []) |
|
| 30 | 25 | } |
|
| 31 | |||
| 32 | 2 | public function __toString() : string |
|
| 33 | { |
||
| 34 | 2 | return $this->statement; |
|
| 35 | } |
||
| 36 | |||
| 37 | 11 | public function getStatement() : string |
|
| 38 | { |
||
| 39 | 11 | return $this->statement; |
|
| 40 | } |
||
| 41 | |||
| 42 | /** @return mixed[] */ |
||
| 43 | 10 | public function getParameters() : array |
|
| 44 | { |
||
| 45 | 10 | return $this->parameters; |
|
| 46 | } |
||
| 47 | |||
| 48 | /** @return mixed[] */ |
||
| 49 | 10 | public function getTypes() : array |
|
| 52 | } |
||
| 53 | } |
||
| 54 |