/** * @return TaskList */ public function newTaskList() { if (is_null($this->newTaskList)) { $this->newTaskList = TaskList::fromArray($this->payload['new_task_list']); } return $this->newTaskList; }
/** * @param ProcessWasSetUp $event */ protected function whenProcessWasSetUp(ProcessWasSetUp $event) { $this->processId = $event->processId(); $this->parentTaskListPosition = $event->parentTaskListPosition(); $this->config = new ArrayReader($event->config()); $this->taskList = TaskList::fromArray($event->taskList()); $this->syncLogMessages = $event->syncLogMessages(); }