lib/Elastica/Query/SpanNear.php 1 location
|
@@ 63-70 (lines=8) @@
|
60 |
|
* |
61 |
|
* @return $this |
62 |
|
*/ |
63 |
|
public function addClause($clause) |
64 |
|
{ |
65 |
|
if (!is_subclass_of($clause, AbstractSpanQuery::class)) { |
66 |
|
throw new InvalidException('Invalid parameter. Has to be array or instance of Elastica\Query\SpanQuery'); |
67 |
|
} |
68 |
|
|
69 |
|
return $this->addParam('clauses', $clause); |
70 |
|
} |
71 |
|
} |
lib/Elastica/Query/SpanOr.php 1 location
|
@@ 43-50 (lines=8) @@
|
40 |
|
* |
41 |
|
* @return $this |
42 |
|
*/ |
43 |
|
public function addClause($clause) |
44 |
|
{ |
45 |
|
if (!is_subclass_of($clause, AbstractSpanQuery::class)) { |
46 |
|
throw new InvalidException('Invalid parameter. Has to be array or instance of Elastica\Query\SpanQuery'); |
47 |
|
} |
48 |
|
|
49 |
|
return $this->addParam('clauses', $clause); |
50 |
|
} |
51 |
|
} |