Handle inequality comparisons with technical data.

This commit is contained in:
Mathieu Darse
2015-11-05 19:43:03 +01:00
parent 713442c7b4
commit 467e530a93
8 changed files with 228 additions and 45 deletions

View File

@@ -0,0 +1,31 @@
<?php
namespace Alchemy\Phrasea\SearchEngine\Elastic\AST\KeyValue;
use Assert\Assertion;
class FieldKey implements Key
{
private $name;
public function __construct($name)
{
Assertion::string($name);
$this->name = $name;
}
public function getIndexField()
{
return 'yolo';
}
public function getValue()
{
return $this->name;
}
public function __toString()
{
return sprintf('field.%s', $this->name);
}
}