Destiny\Grimoire\CardStatus::gStatisticCollection PHP Method

gStatisticCollection() protected method

protected gStatisticCollection ( )
    protected function gStatisticCollection()
    {
        $statisticCollection = $this->newCollection();
        if (!isset($this->properties['statisticCollection'])) {
            return $statisticCollection;
        }
        foreach ($this->properties['statisticCollection'] as $statistic) {
            $rankCollection = $this->newCollection();
            foreach (array_get($statistic, 'rankCollection') ?: [] as $rank) {
                $rankCollection->put($rank['rank'], $rank);
            }
            $statistic['rankCollection'] = $rankCollection;
            $statisticCollection->put($statistic['statNumber'], $statistic);
        }
        return $statisticCollection;
    }