| 1 | <?php |
||
| 12 | class RenameProcessor extends AbstractProcessor |
||
| 13 | { |
||
| 14 | public const DEFAULT_IGNORE_MISSING_VALUE = false; |
||
| 15 | |||
| 16 | public function __construct(string $field, string $targetField) |
||
| 21 | |||
| 22 | /** |
||
| 23 | * Set field. |
||
| 24 | * |
||
| 25 | * @return $this |
||
| 26 | */ |
||
| 27 | public function setField(string $field): self |
||
| 31 | |||
| 32 | /** |
||
| 33 | * Set target_field. |
||
| 34 | * |
||
| 35 | * @return $this |
||
| 36 | */ |
||
| 37 | public function setTargetField(string $targetField): self |
||
| 41 | |||
| 42 | /** |
||
| 43 | * Set ignore_missing. Default value false. |
||
| 44 | * |
||
| 45 | * @param bool $ignoreMissing only these values are allowed (integer|float|string|boolean|auto) |
||
| 46 | * |
||
| 47 | * @return $this |
||
| 48 | */ |
||
| 49 | public function setIgnoreMissing(bool $ignoreMissing): self |
||
| 53 | } |
||
| 54 |