diff --git a/src/Backends/Common/Response.php b/src/Backends/Common/Response.php new file mode 100644 index 00000000..293362e4 --- /dev/null +++ b/src/Backends/Common/Response.php @@ -0,0 +1,48 @@ +error; + } + + /** + * Return Error response. + */ + public function getError(): Error + { + return $this->error ?? new Error('No error logged.'); + } + + /** + * Is the Operation Successful? + */ + public function isSuccessful(): bool + { + return $this->status; + } +}