/** * Get string for recovery time * @return string */ public function fitRecoveryTime() { if ($this->Activity->fitRecoveryTime() > 0) { $hours = $this->Activity->fitRecoveryTime() / 60; if ($hours > 72) { return round($hours / 24) . 'd'; } return round($hours) . 'h'; } return ''; }