| Total Complexity | 3 |
| Total Lines | 27 |
| Duplicated Lines | 0 % |
| Coverage | 100% |
| Changes | 0 | ||
| 1 | <?php |
||
| 12 | class SQLQuery extends Query implements MapperProvider |
||
| 13 | { |
||
| 14 | use Mappers; |
||
| 15 | |||
| 16 | private string $sql; |
||
| 17 | |||
| 18 | /** |
||
| 19 | * @param $sql SQL statement (with placeholders) |
||
| 20 | */ |
||
| 21 | 1 | public function __construct(TypeProvider $types, string $sql) |
|
| 22 | { |
||
| 23 | 1 | parent::__construct($types); |
|
| 24 | |||
| 25 | 1 | $this->sql = $sql; |
|
| 26 | } |
||
| 27 | |||
| 28 | 1 | public function getSQL(): string |
|
| 29 | { |
||
| 30 | 1 | return $this->sql; |
|
| 31 | } |
||
| 32 | |||
| 33 | /** |
||
| 34 | * @inheritdoc |
||
| 35 | */ |
||
| 36 | 1 | public function getMappers(): array |
|
| 39 | } |
||
| 40 | } |
||
| 41 |