diff --git a/src/VeeamSPCClient.php b/src/VeeamSPCClient.php index 1e6757f..5e2a0c9 100755 --- a/src/VeeamSPCClient.php +++ b/src/VeeamSPCClient.php @@ -5,6 +5,7 @@ use GuzzleHttp\Client; use GuzzleHttp\RequestOptions; use Shellrent\VeeamVspcApiClient\Support\Filter; +use Shellrent\VeeamVspcApiClient\Support\FilterCollection; use Shellrent\VeeamVspcApiClient\Support\RequestBuilder; class VeeamSPCClient { @@ -49,7 +50,15 @@ protected function getOptions(): array { return array_merge( $this->Options, $additions ); } - public function send( RequestBuilder $requestBuilder, ?Filter $filter = null, ?array $queryParams = null ) { + /** + * @param RequestBuilder $requestBuilder + * @param null|Filter|FilterCollection $filter + * @param array|null $queryParams + * + * @throws \GuzzleHttp\Exception\GuzzleException + * @return \Psr\Http\Message\ResponseInterface + */ + public function send( RequestBuilder $requestBuilder, $filter = null, ?array $queryParams = null ) { if ( $filter ) { $requestBuilder->filter( $filter ); } @@ -61,7 +70,15 @@ public function send( RequestBuilder $requestBuilder, ?Filter $filter = null, ?a return $this->Client->send( $requestBuilder->buildRequest(), $this->getOptions() ); } - public function jsonResponse( RequestBuilder $requestBuilder, ?Filter $filter = null, ?array $queryParams = null ) { + /** + * @param RequestBuilder $requestBuilder + * @param null|Filter|FilterCollection $filter + * @param array|null $queryParams + * + * @throws \GuzzleHttp\Exception\GuzzleException + * @return mixed + */ + public function jsonResponse( RequestBuilder $requestBuilder, $filter = null, ?array $queryParams = null ) { if ( $filter ) { $requestBuilder->filter( $filter ); }