public function __construct() { // Get an error dispatcher $this->error_dispatcher = ApiHttpErrors::getInstance(); // Declare response as an array $this->response = array(); }
public static function getInstance() { if (!isset(self::$instance)) { self::$instance = new self(); } return self::$instance; }