/** * Get ground contact balance * @return string ground contact balance with unit */ public function groundcontactBalance() { if ($this->Activity->groundContactBalance() > 0) { return GroundcontactBalance::format($this->Activity->groundContactBalance()); } return ''; }
/** * Constructor * @param \Runalyze\View\Activity\Context $Context */ public function __construct(\Runalyze\View\Activity\Context $Context) { parent::__construct(\Runalyze\Activity\GroundcontactBalance::format($Context->activity()->groundContactBalance(), false), '%', __('Ground Contact Balance')); }