private function getAPIKey() { $this->apiKey = NULL; if (isset($_GET['apiKey'])) { $this->apiKey = $_GET['apiKey']; } else { if (isset($_POST['apiKey'])) { $this->apiKey = $_POST['apiKey']; } } }