/** * Override to create the tasks from the according options * * @param string $name Variable name * @param mixed $value Variable value * * @return void */ public function offsetSet($name, $value) { if (in_array($name, ['workflow', 'script', 'task', 'tasks'], true)) { throw new Exception($name . ' not allowed on workflows'); } parent::offsetSet($name, $value); }