1 | <?php |
||
19 | class Query extends AbstractPart |
||
20 | { |
||
21 | /** |
||
22 | * @var string The original query string. |
||
23 | */ |
||
24 | private $query; |
||
25 | |||
26 | /** |
||
27 | * Construct a new Query instance. |
||
28 | * |
||
29 | * @param string $query |
||
30 | */ |
||
31 | 69 | public function __construct($query = null) |
|
35 | |||
36 | /** |
||
37 | * Builds a string query from this Query instance internal data and returns it. |
||
38 | * |
||
39 | * @return string |
||
40 | */ |
||
41 | 31 | public function getQuery(): string |
|
47 | |||
48 | /** |
||
49 | * Set the string query for this Query instance and sets initialized to false. |
||
50 | * |
||
51 | * @param string |
||
52 | */ |
||
53 | 1 | public function setQuery($query) |
|
58 | |||
59 | /** |
||
60 | * @inheritDoc |
||
61 | */ |
||
62 | 23 | public function __toString() |
|
66 | |||
67 | /** |
||
68 | * @inheritDoc |
||
69 | */ |
||
70 | 31 | protected function doInitialize() |
|
74 | } |
||
75 |