Logo
Explore Help
Sign In
kor-elf/service-captcha
1
0
Fork 0
You've already forked service-captcha
Code Issues Pull Requests Packages Projects Releases 5 Wiki Activity
service-captcha/app/Contracts/ServiceResult.php
Leonid Nikitin 6dd24ac1d3
A new method 'isError' has been introduced to the ServiceResult interface and its implementation. This change was made to improve readability and logic. Now instead of checking if the result is not successful, we can directly check if it's an error using isError method. This improves the code clarity.
2023-07-06 22:31:39 +06:00

11 lines
162 B
PHP
Raw Blame History

<?php
declare(strict_types=1);
namespace App\Contracts;
interface ServiceResult
{
public function isSuccess(): bool;
public function isError(): bool;
}
Reference in New Issue View Git Blame Copy Permalink
Powered by Gitea
English
Bahasa Indonesia Deutsch English Español Français Gaeilge Italiano Latviešu Magyar nyelv Nederlands Polski Português de Portugal Português do Brasil Suomi Svenska Türkçe Čeština Ελληνικά Български Русский Українська فارسی മലയാളം 日本語 简体中文 繁體中文(台灣) 繁體中文(香港) 한국어
Licenses