public function setRequestFactory(HttpRequestFactory $requestFactory = null)
    {
        if (!$requestFactory) {
            $requestFactory = $this->apiDiscoveryProxy->discoverRequestFactory();
        }

        $this->requestFactory = $requestFactory;

        return $this;
    }
public function setRequestFactory(HttpRequestFactory $requestFactory = null)
    {
        if (!$requestFactory) {
            $requestFactory = $this->apiDiscoveryProxy->discoverRequestFactory();
        }

        $this->requestFactory = $requestFactory;

        return $this;
    }
public function setRequestFactory ( HttpRequestFactory $ requestFactory = null ) { if ( ! $ requestFactory ) { $ requestFactory = $ this -> apiDiscoveryProxy -> discoverRequestFactory ( ) ; } $ this -> requestFactory = $ requestFactory ; return $ this ; }
Sets factory for PSR-7 requests.

@param HttpRequestFactory $requestFactory

@return $this
Sets factory for PSR - 7 requests .