public function getRequest($method, $path, $parameters = [], $authenticated = true)
    {
        $request = $this->createRequest($method, $path, $parameters);

        if ($authenticated) {
            $request = $this->authenticateRequest($request);
        }

        return $request;
    }
public function getRequest($method, $path, $parameters = [], $authenticated = true)
    {
        $request = $this->createRequest($method, $path, $parameters);

        if ($authenticated) {
            $request = $this->authenticateRequest($request);
        }

        return $request;
    }
public function getRequest ( $ method , $ path , $ parameters = [ ] , $ authenticated = true ) { $ request = $ this -> createRequest ( $ method , $ path , $ parameters ) ; if ( $ authenticated ) { $ request = $ this -> authenticateRequest ( $ request ) ; } return $ request ; }
Creates and returns a request.

@param  string $method
@param  string $path
@param  array  $parameters

@return RequestInterface
Creates and returns a request .