Files
Phraseanet/lib/Alchemy/Phrasea/SearchEngine/Elastic/AST/FieldNode.php
Mathieu Darse 0bbd35dc02 AST revamp
2014-11-06 19:06:34 +01:00

34 lines
571 B
PHP

<?php
namespace Alchemy\Phrasea\SearchEngine\Elastic\AST;
class FieldNode extends Node
{
protected $keyword;
public function __construct($keyword)
{
$this->keyword = $keyword;
}
public function getValue()
{
return $this->keyword;
}
public function getQuery()
{
throw new \LogicException("A keyword can't be converted to a query.");
}
public function __toString()
{
return sprintf('<%s>', $this->keyword);
}
public function isFullTextOnly()
{
return false;
}
}