1<?php 2 3namespace Elastica\Processor; 4 5/** 6 * Elastica Remove Processor. 7 * 8 * @author Federico Panini <fpanini@gmail.com> 9 * 10 * @see https://www.elastic.co/guide/en/elasticsearch/reference/current/remove-processor.html 11 */ 12class RemoveProcessor extends AbstractProcessor 13{ 14 use Traits\IgnoreFailureTrait; 15 use Traits\IgnoreMissingTrait; 16 17 /** 18 * @param array|string $field 19 */ 20 public function __construct($field) 21 { 22 $this->setField($field); 23 } 24 25 /** 26 * Set field. 27 * 28 * @param array|string $field 29 * 30 * @return $this 31 */ 32 public function setField($field): self 33 { 34 return $this->setParam('field', $field); 35 } 36} 37