protected function duration() { if ($this->has('run_time')) { $duration = sprintf('%ss', round($this->get('run_time'))); } else { $duration = null; } return $duration; }