array('log', 0), ); } public function log(SubtaskEvent $event) { if (isset($event['status'])) { $subtask = $this->subtask->getById($event['id']); if ($subtask['status'] == Subtask::STATUS_INPROGRESS) { $this->subtaskTimeTracking->logStartTime($subtask['id'], $subtask['user_id']); } else { $this->subtaskTimeTracking->logEndTime($subtask['id'], $subtask['user_id']); } } } }