| 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 | * |
||
| 56 | * @return $this |
||
| 57 | */ |
||
| 58 | public function setQuery($query) |
||
| 64 | |||
| 65 | /** |
||
| 66 | * @return string |
||
| 67 | */ |
||
| 68 | public function getField() |
||
| 72 | |||
| 73 | /** |
||
| 74 | * @param string $field |
||
| 75 | * |
||
| 76 | * @return $this |
||
| 77 | */ |
||
| 78 | public function setField($field) |
||
| 84 | |||
| 85 | /** |
||
| 86 | * {@inheritdoc} |
||
| 87 | */ |
||
| 88 | public function toArray() |
||
| 99 | |||
| 100 | /** |
||
| 101 | * {@inheritdoc} |
||
| 102 | */ |
||
| 103 | public function getType() |
||
| 107 | } |
||
| 108 |