Example #1
0
 /**
  * Constructor
  *
  * @param string $base_uri
  *
  * @throw InvalidArgumentException
  */
 public function __construct($base_uri = "")
 {
     // Set Base URI
     if (!is_string($base_uri)) {
         throw new InvalidArgumentException("Base URI must be a string value");
     }
     $this->base_uri = $base_uri;
     // New Request
     $this->request = Request::getInstance($this);
     $this->response = Response::getInstance($this);
 }