1<?php
2
3namespace Elastica\Processor;
4
5/**
6 * Elastica Rename Processor.
7 *
8 * @author Federico Panini <fpanini@gmail.com>
9 *
10 * @see https://www.elastic.co/guide/en/elasticsearch/reference/current/rename-processor.html
11 */
12class RenameProcessor extends AbstractProcessor
13{
14    use Traits\FieldTrait;
15    use Traits\IgnoreFailureTrait;
16    use Traits\IgnoreMissingTrait;
17    use Traits\TargetFieldTrait;
18
19    public const DEFAULT_IGNORE_MISSING_VALUE = false;
20
21    public function __construct(string $field, string $targetField)
22    {
23        $this->setField($field);
24        $this->setTargetField($targetField);
25    }
26}
27