/** * @inheritDoc */ public static function create($components) { $regions = new self(); for ($i = 2; $i < count($components); $i += 2) { // the region $region = new \Mastercoding\Conquest\Object\Region($components[$i], $components[$i + 1]); $regions->addRegion($region); } return $regions; }