2023-07-16 19:21:09 +06:00
|
|
|
<?php declare(strict_types=1);
|
2023-06-28 14:36:51 +06:00
|
|
|
|
|
|
|
namespace App\Contracts;
|
|
|
|
|
|
|
|
interface ServiceResultError
|
|
|
|
{
|
|
|
|
public function getCode(): ?int;
|
|
|
|
public function getMessage(): string;
|
|
|
|
public function getErrors(): array;
|
2023-07-16 19:21:09 +06:00
|
|
|
public function getErrorsOrMessage(): array|string;
|
2023-06-28 14:36:51 +06:00
|
|
|
public function getData(): array;
|
|
|
|
}
|