Destiny\Grimoire\Statistic::gPercent PHP Метод

gPercent() защищенный Метод

protected gPercent ( )
    protected function gPercent()
    {
        $percent = 0;
        if ($this->hasRanks()) {
            $percent = $this->value / $this->rankCollection->last()->threshold * 100;
        }
        return $percent > 100 ? 100 : $percent;
    }