function __construct($region, $realm, $teamsize, $teamname) { $this->region = $region; $this->realm = $realm; $this->size = $teamsize; $this->teamname = $teamname; $jsonConnect = new jsonConnect(); $this->data = $jsonConnect->getArenaTeam($region, $realm, $teamsize, $teamname, $this->fields); $this->teamname = $this->data['name']; }