giansalex/greenter

View on GitHub
packages/core/src/Core/Validator/ErrorCodeProviderInterface.php

Summary

Maintainability
A
0 mins
Test Coverage
<?php

declare(strict_types=1);

namespace Greenter\Validator;

/**
 * Interface ErrorCodeProviderInterface.
 */
interface ErrorCodeProviderInterface
{
    /**
     * @return array
     */
    public function getAll(): ?array;

    /**
     * @param string $code
     *
     * @return string
     */
    public function getValue(?string $code): ?string;
}