Code Coverage |
||||||||||
Lines |
Functions and Methods |
Classes and Traits |
||||||||
| Total | |
100.00% |
2 / 2 |
|
100.00% |
2 / 2 |
CRAP | |
100.00% |
1 / 1 |
| EmptyQueryNode | |
100.00% |
2 / 2 |
|
100.00% |
2 / 2 |
2 | |
100.00% |
1 / 1 |
| toArray | |
100.00% |
1 / 1 |
|
100.00% |
1 / 1 |
1 | |||
| accept | |
100.00% |
1 / 1 |
|
100.00% |
1 / 1 |
1 | |||
| 1 | <?php |
| 2 | |
| 3 | namespace CirrusSearch\Parser\AST; |
| 4 | |
| 5 | use CirrusSearch\Parser\AST\Visitor\Visitor; |
| 6 | |
| 7 | /** |
| 8 | * Empty query node (we could not parse anything useful) |
| 9 | */ |
| 10 | class EmptyQueryNode extends ParsedNode { |
| 11 | |
| 12 | /** |
| 13 | * @return array |
| 14 | */ |
| 15 | public function toArray() { |
| 16 | return [ 'empty' => parent::baseParams() ]; |
| 17 | } |
| 18 | |
| 19 | public function accept( Visitor $visitor ) { |
| 20 | $visitor->visitEmptyQueryNode( $this ); |
| 21 | } |
| 22 | } |