public function __construct(array $items = []) { foreach ($items as $item) { $statistic = new Statistic($item); $this->put($statistic->statId, $statistic); } }