keyword = $keyword; } public function getValue() { return $this->keyword; } public function buildQuery(QueryContext $context) { throw new \LogicException("A keyword can't be converted to a query."); } public function getTermNodes() { throw new \LogicException("A keyword can't contain text nodes."); } public function __toString() { return sprintf('', $this->keyword); } }