Skip to content

Commit d4f3499

Browse files
committed
added new method
1 parent d6e70a2 commit d4f3499

File tree

1 file changed

+12
-1
lines changed

1 file changed

+12
-1
lines changed

src/Http/Request.php

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,10 @@ class Request
7373
* @var array
7474
*/
7575
protected $parameters = [];
76+
/**
77+
* @var RequestInterface
78+
*/
79+
protected RequestInterface $psrRequest;
7680

7781
public function __construct(AbstractClient $client = null)
7882
{
@@ -297,7 +301,14 @@ public function make($method, $uri)
297301

298302
$uriObject = $this->getClient()->getUri($fullPath);
299303

300-
return $this->getClient()->getRequest($method, $uriObject);
304+
$this->psrRequest = $this->getClient()->getRequest($method, $uriObject);
305+
306+
return $this->psrRequest;
307+
}
308+
309+
public function getPsrRequest()
310+
{
311+
return $this->psrRequest;
301312
}
302313

303314
/**

0 commit comments

Comments
 (0)