| 1 | <?php |
||
| 12 | class SetProcessor extends AbstractProcessor |
||
| 13 | { |
||
| 14 | public const DEFAULT_OVERRIDE_VALUE = true; |
||
| 15 | |||
| 16 | public function __construct(string $field, string $value) |
||
| 21 | |||
| 22 | /** |
||
| 23 | * Set field. |
||
| 24 | * |
||
| 25 | * @return $this |
||
| 26 | */ |
||
| 27 | public function setField(string $field): self |
||
| 31 | |||
| 32 | /** |
||
| 33 | * Set field value. |
||
| 34 | * |
||
| 35 | * @return $this |
||
| 36 | */ |
||
| 37 | public function setValue(string $value): self |
||
| 41 | |||
| 42 | /** |
||
| 43 | * Set override. Default true. |
||
| 44 | * |
||
| 45 | * @return $this |
||
| 46 | */ |
||
| 47 | public function setOverride(bool $override): self |
||
| 51 | } |
||
| 52 |