Version 0.7.0 #1

Merged
kor-elf merged 90 commits from develop into main 2023-12-08 21:18:23 +06:00
2 changed files with 7 additions and 1 deletions
Showing only changes of commit 6dd24ac1d3 - Show all commits

View File

@ -6,4 +6,5 @@ namespace App\Contracts;
interface ServiceResult
{
public function isSuccess(): bool;
public function isError(): bool;
}

View File

@ -10,6 +10,11 @@ abstract class ServiceResult implements ServiceResultContract
{
public function isSuccess(): bool
{
return $this instanceof ServiceResultErrorContract !== true;
return $this->isError() === false;
}
public function isError(): bool
{
return $this instanceof ServiceResultErrorContract === true;
}
}