| Conditions | 5 | 
| Paths | 16 | 
| Total Lines | 24 | 
| Code Lines | 12 | 
| Lines | 0 | 
| Ratio | 0 % | 
| Tests | 0 | 
| CRAP Score | 30 | 
| Changes | 0 | ||
| 1 | <?php  | 
            ||
| 90 | public function compile(): array  | 
            ||
| 91 |     { | 
            ||
| 92 | $query = [  | 
            ||
| 93 | 'type' => $this->type,  | 
            ||
| 94 | 'query' => $this->query,  | 
            ||
| 95 | ];  | 
            ||
| 96 | |||
| 97 |         if ($this->scoreMode !== null) { | 
            ||
| 98 | $query['score_mode'] = $this->scoreMode;  | 
            ||
| 99 | }  | 
            ||
| 100 | |||
| 101 |         if ($this->ignoreUnmapped !== null) { | 
            ||
| 102 | $query['ignore_unmapped'] = $this->ignoreUnmapped;  | 
            ||
| 103 | }  | 
            ||
| 104 | |||
| 105 |         if ($this->minChildren !== null) { | 
            ||
| 106 | $query['min_children'] = $this->minChildren;  | 
            ||
| 107 | }  | 
            ||
| 108 | |||
| 109 |         if ($this->maxChildren !== null) { | 
            ||
| 110 | $query['max_children'] = $this->maxChildren;  | 
            ||
| 111 | }  | 
            ||
| 112 | |||
| 113 | return $query;  | 
            ||
| 114 | }  | 
            ||
| 116 |