damianopetrungaro/clean-architecture

View on GitHub
src/UseCase/Error/Error.php

Summary

Maintainability
A
0 mins
Test Coverage
<?php

declare(strict_types=1);

namespace Damianopetrungaro\CleanArchitecture\UseCase\Error;

interface Error
{
    /**
     * Return the error code.
     *
     * @return string
     */
    public function code(): string;

    /**
     * Return the error type.
     *
     * @return ErrorType
     */
    public function type(): ErrorType;
}