| 1 | <?php |
||
| 21 | class FieldMaskingSpanQuery implements SpanQueryInterface |
||
| 22 | { |
||
| 23 | use ParametersTrait; |
||
| 24 | |||
| 25 | /** |
||
| 26 | * @var SpanQueryInterface |
||
| 27 | */ |
||
| 28 | private $query; |
||
| 29 | |||
| 30 | /** |
||
| 31 | * @var string |
||
| 32 | */ |
||
| 33 | private $field; |
||
| 34 | |||
| 35 | /** |
||
| 36 | * @param string $field |
||
| 37 | * @param SpanQueryInterface $query |
||
| 38 | */ |
||
| 39 | public function __construct($field, SpanQueryInterface $query) |
||
| 44 | |||
| 45 | /** |
||
| 46 | * @return mixed |
||
| 47 | */ |
||
| 48 | public function getQuery() |
||
| 52 | |||
| 53 | /** |
||
| 54 | * @param mixed $query |
||
| 55 | * @return self |
||
| 56 | */ |
||
| 57 | public function setQuery($query) |
||
| 62 | |||
| 63 | /** |
||
| 64 | * @return string |
||
| 65 | */ |
||
| 66 | public function getField() |
||
| 70 | |||
| 71 | /** |
||
| 72 | * @param string $field |
||
| 73 | * @return FieldMaskingSpanQuery |
||
| 74 | */ |
||
| 75 | public function setField($field) |
||
| 80 | |||
| 81 | /** |
||
| 82 | * {@inheritdoc} |
||
| 83 | */ |
||
| 84 | public function toArray() |
||
| 95 | |||
| 96 | /** |
||
| 97 | * {@inheritdoc} |
||
| 98 | */ |
||
| 99 | public function getType() |
||
| 103 | } |
||
| 104 |