Task/PropertySetterTask.php
public function execute(ProcessState $state)
    {
        $options = $this->getOptions($state);
        $input = $state->getInput();
        /** @noinspection ForeachSourceInspection */
        foreach ($options['values'] as $key => $value) {
            try {
                $this->accessor->setValue($input, $key, $value);
            } catch (\Exception $e) {
                $state->addErrorContextValue('property', $key);
                $state->addErrorContextValue('value', $value);
                $state->setException($e);

                return;
            }
        }

        $state->setOutput($input);
    }
public function execute(ProcessState $state)
    {
        $options = $this->getOptions($state);
        $input = $state->getInput();
        /** @noinspection ForeachSourceInspection */
        foreach ($options['values'] as $key => $value) {
            try {
                $this->accessor->setValue($input, $key, $value);
            } catch (\Exception $e) {
                $state->addErrorContextValue('property', $key);
                $state->addErrorContextValue('value', $value);
                $state->setException($e);

                return;
            }
        }

        $state->setOutput($input);
    }
@param ProcessState $state

@throws \Exception