예제 #1
0
 /**
  * @param TodoAssigneeWasReminded $event
  * @return void
  */
 protected function whenTodoAssigneeWasReminded(TodoAssigneeWasReminded $event)
 {
     $this->reminder = $event->reminder();
 }
 /**
  * @param TodoAssigneeWasReminded $event
  * @return void
  */
 public function onTodoAssigneeWasReminded(TodoAssigneeWasReminded $event)
 {
     $this->connection->update(Table::TODO_REMINDER, ['status' => $event->reminder()->status()->toString()], ['todo_id' => $event->todoId()->toString()]);
 }