public function setGroup($group) { if (KurogoStats::isValidGroup($group)) { $this->group = is_array($group) ? $group : explode(',', $group); } else { throw new Exception("Invalid group field {$group}"); } }