Destiny\Grimoire\RankCollection::__construct PHP Method

__construct() public method

public __construct ( Statistic $statistic, array $items = null )
$statistic Statistic
$items array
    public function __construct(Statistic $statistic, array $items = null)
    {
        if (is_array($items)) {
            $offset = 0;
            foreach ($items as $properties) {
                $properties['offset'] = $offset;
                $offset = $properties['threshold'];
                $rank = new Rank($statistic, $properties);
                $this->items[$rank->rank] = $rank;
            }
        }
    }
RankCollection