for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace Elastica\Processor;
/**
* Elastica Set Processor.
*
* @author Federico Panini <[email protected]>
* @see https://www.elastic.co/guide/en/elasticsearch/reference/current/set-processor.html
*/
class SetProcessor extends AbstractProcessor
{
public const DEFAULT_OVERRIDE_VALUE = true;
public function __construct(string $field, string $value)
$this->setField($field);
$this->setValue($value);
}
* Set field.
* @return $this
public function setField(string $field): self
return $this->setParam('field', $field);
* Set field value.
public function setValue(string $value): self
return $this->setParam('value', $value);
* Set override. Default true.
public function setOverride(bool $override): self
return $this->setParam('override', $override);