Code Coverage |
||||||||||
Lines |
Functions and Methods |
Classes and Traits |
||||||||
Total | |
100.00% |
2 / 2 |
|
100.00% |
1 / 1 |
CRAP | |
100.00% |
1 / 1 |
Where | |
100.00% |
2 / 2 |
|
100.00% |
1 / 1 |
1 | |
100.00% |
1 / 1 |
__construct | |
100.00% |
2 / 2 |
|
100.00% |
1 / 1 |
1 |
1 | <?php |
2 | /** |
3 | * Jingga |
4 | * |
5 | * PHP Version 8.1 |
6 | * |
7 | * @package phpOMS\DataStorage\Database\Query |
8 | * @copyright Dennis Eichhorn |
9 | * @license OMS License 2.0 |
10 | * @version 1.0.0 |
11 | * @link https://jingga.app |
12 | */ |
13 | declare(strict_types=1); |
14 | |
15 | namespace phpOMS\DataStorage\Database\Query; |
16 | |
17 | use phpOMS\DataStorage\Database\Connection\ConnectionAbstract; |
18 | |
19 | /** |
20 | * Database query builder. |
21 | * |
22 | * @package phpOMS\DataStorage\Database\Query |
23 | * @license OMS License 2.0 |
24 | * @link https://jingga.app |
25 | * @since 1.0.0 |
26 | */ |
27 | class Where extends Builder |
28 | { |
29 | /** |
30 | * Constructor. |
31 | * |
32 | * @param ConnectionAbstract $connection Database connection |
33 | * |
34 | * @since 1.0.0 |
35 | */ |
36 | public function __construct(ConnectionAbstract $connection) |
37 | { |
38 | parent::__construct($connection); |
39 | $this->type = QueryType::SELECT; |
40 | } |
41 | } |