コード例 #1
0
 /**
  * @return TaskList
  */
 public function newTaskList()
 {
     if (is_null($this->newTaskList)) {
         $this->newTaskList = TaskList::fromArray($this->payload['new_task_list']);
     }
     return $this->newTaskList;
 }
コード例 #2
0
ファイル: Process.php プロジェクト: prooph/processing
 /**
  * @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();
 }