ApiTools = new ApplicationAPI($AdminID); $this->AdminID = $AdminID; } public function Auth($key) { if ($this->ApiTools->keysMatch($key)) { return true; } else { throw new Exception("FATAL: Invalid API key"); } } }