mirror of
https://github.com/alchemy-fr/Phraseanet.git
synced 2025-10-11 03:53:13 +00:00
26 lines
416 B
PHP
26 lines
416 B
PHP
<?php
|
|
|
|
namespace Alchemy\Phrasea\SearchEngine\Elastic\AST;
|
|
|
|
use Alchemy\Phrasea\SearchEngine\Elastic\Search\QueryContext;
|
|
|
|
class Field
|
|
{
|
|
protected $field;
|
|
|
|
public function __construct($field)
|
|
{
|
|
$this->field = $field;
|
|
}
|
|
|
|
public function getValue()
|
|
{
|
|
return $this->field;
|
|
}
|
|
|
|
public function __toString()
|
|
{
|
|
return sprintf('<field:%s>', $this->field);
|
|
}
|
|
}
|