code: public function request(RequestInterface $request = null) : RequestInterface
      {
          if ($request){
              $this->request = $request;
          }
          if (!$this->request){
              $this->request = new NullRequest;
          }
          return $this->request;
      }
docs: Set/get request
  
  @param RequestInterface $request
  
  @return RequestInterface