| 1 | <?php |
||
| 22 | class MoreLikeThisQuery implements BuilderInterface |
||
| 23 | { |
||
| 24 | use ParametersTrait; |
||
| 25 | |||
| 26 | /** |
||
| 27 | * @var string The text to find documents like it, required if ids or docs are not specified. |
||
| 28 | */ |
||
| 29 | private $like; |
||
| 30 | |||
| 31 | /** |
||
| 32 | * @param string $like |
||
| 33 | * @param array $parameters |
||
| 34 | */ |
||
| 35 | public function __construct($like, array $parameters = []) |
||
| 40 | |||
| 41 | /** |
||
| 42 | * {@inheritdoc} |
||
| 43 | */ |
||
| 44 | public function getType() |
||
| 48 | |||
| 49 | /** |
||
| 50 | * {@inheritdoc} |
||
| 51 | */ |
||
| 52 | public function toArray() |
||
| 64 | } |
||
| 65 |