refactored code

Signed-off-by: Maurice Preuß (envoyr) <hello@envoyr.com>
This commit is contained in:
envoyr committed 2025-04-30 03:45:10 +02:00
1 parent 85702fcb2c
commit 4b23f6ddbb
42 files changed
+1139 -594

No files matched your search

+1 -1
View File
@@ -15,5 +15,5 @@ trait Delete
* @throws RequestRequiresClientIdException
* @throws GuzzleException
*/
abstract public function delete(string $path, array $payload = [], array $parameters = [], Paginator $paginator = null): Result;
abstract public function delete(string $path, array $payload = [], array $parameters = [], ?Paginator $paginator = null): Result;
}
+1 -1
View File
@@ -15,5 +15,5 @@ trait Get
* @throws RequestRequiresClientIdException
* @throws GuzzleException
*/
abstract public function get(string $path, array $parameters = [], Paginator $paginator = null): Result;
abstract public function get(string $path, array $parameters = [], ?Paginator $paginator = null): Result;
}
+1 -1
View File
@@ -15,5 +15,5 @@ trait Post
* @throws RequestRequiresClientIdException
* @throws GuzzleException
*/
abstract public function post(string $path, array $payload = [], array $parameters = [], Paginator $paginator = null): Result;
abstract public function post(string $path, array $payload = [], array $parameters = [], ?Paginator $paginator = null): Result;
}
+1 -1
View File
@@ -15,5 +15,5 @@ trait Put
* @throws RequestRequiresClientIdException
* @throws GuzzleException
*/
abstract public function put(string $path, array $payload = [], array $parameters = [], Paginator $paginator = null): Result;
abstract public function put(string $path, array $payload = [], array $parameters = [], ?Paginator $paginator = null): Result;
}
+1 -1
View File
@@ -15,5 +15,5 @@ trait Request
* @throws RequestRequiresClientIdException
* @throws GuzzleException
*/
abstract public function request(string $method, string $path, null|array $payload = null, array $parameters = [], Paginator $paginator = null): Result;
abstract public function request(string $method, string $path, null|array $payload = null, array $parameters = [], ?Paginator $paginator = null): Result;
}