Example #1
0
 /**
  * @return ApiRequestInterface
  */
 public function getRequest()
 {
     if (!$this->request) {
         $this->request = new ApiRequest($this->getMethod(), $this->getUri(), $this->getHeaders(), $this->getBody(), $this->getProtocol());
         if ($this->mock) {
             $this->request->withMock($this->mock);
         }
         $this->request->withOptions($this->options);
     }
     return $this->request;
 }