| Total Complexity | 5 |
| Total Lines | 37 |
| Duplicated Lines | 0 % |
| Coverage | 50% |
| Changes | 0 | ||
| 1 | <?php |
||
| 17 | class NotImplementedStatement extends Statement |
||
| 18 | { |
||
| 19 | /** |
||
| 20 | * The part of the statement that can't be parsed. |
||
| 21 | * |
||
| 22 | * @var Token[] |
||
| 23 | */ |
||
| 24 | public $unknown = []; |
||
| 25 | |||
| 26 | /** |
||
| 27 | * @return string |
||
| 28 | */ |
||
| 29 | public function build() |
||
| 30 | { |
||
| 31 | // Building the parsed part of the query (if any). |
||
| 32 | $query = parent::build() . ' '; |
||
| 33 | |||
| 34 | // Rebuilding the unknown part from tokens. |
||
| 35 | foreach ($this->unknown as $token) { |
||
| 36 | $query .= $token->token; |
||
| 37 | } |
||
| 38 | |||
| 39 | return $query; |
||
| 40 | } |
||
| 41 | |||
| 42 | /** |
||
| 43 | * @param Parser $parser the instance that requests parsing |
||
| 44 | * @param TokensList $list the list of tokens to be parsed |
||
| 45 | */ |
||
| 46 | 4 | public function parse(Parser $parser, TokensList $list) |
|
| 54 | } |
||
| 55 | } |
||
| 57 |