feat: add zyt medicine bootstrap
This commit is contained in:
@@ -0,0 +1,20 @@
|
||||
<?php
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
namespace app\common\service\pharmacy;
|
||||
|
||||
use Throwable;
|
||||
|
||||
final class PharmacyRemoteOutcomeClassifier
|
||||
{
|
||||
public static function isConfirmedEjNoCreateHttpStatus(int $httpStatus): bool
|
||||
{
|
||||
return in_array($httpStatus, [400, 401, 403, 404, 405, 415, 422], true);
|
||||
}
|
||||
|
||||
public static function isConfirmedNoCreate(Throwable $exception): bool
|
||||
{
|
||||
return $exception instanceof PharmacyRemoteRejectedException;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user