public function __construct(array $info) { foreach ($info as &$mastery) { $mastery = new ChampionMastery($mastery); } parent::__construct($info); }