service-captcha/app/ServiceResults/ServiceResult.php

16 lines
375 B
PHP

<?php
declare(strict_types=1);
namespace App\ServiceResults;
use App\Contracts\ServiceResult as ServiceResultContract;
use App\Contracts\ServiceResultError as ServiceResultErrorContract;
abstract class ServiceResult implements ServiceResultContract
{
public function isSuccess(): bool
{
return $this instanceof ServiceResultErrorContract !== true;
}
}