Added the ability to manage a group of users.
This commit is contained in:
@@ -30,6 +30,15 @@ final class ServiceResultError extends ServiceResult implements ServiceResultErr
|
||||
return $this->errors;
|
||||
}
|
||||
|
||||
public function getErrorsOrMessage(): array|string
|
||||
{
|
||||
if (!empty($this->getErrors())) {
|
||||
return $this->getErrors();
|
||||
}
|
||||
|
||||
return $this->getMessage();
|
||||
}
|
||||
|
||||
public function getData(): array
|
||||
{
|
||||
return [
|
||||
|
Reference in New Issue
Block a user