soliantconsulting/SimpleFM

View on GitHub
src/Repository/Builder/Proxy/Exception/InvalidInterfaceException.php

Summary

Maintainability
A
0 mins
Test Coverage
A
100%
<?php
declare(strict_types = 1);

namespace Soliant\SimpleFM\Repository\Builder\Proxy\Exception;

use DomainException;

final class InvalidInterfaceException extends DomainException implements ExceptionInterface
{
    public static function fromInvalidInterface(string $interfaceName) : self
    {
        return new self(sprintf(
            '"%s" was expected to be an interface, but is not',
            $interfaceName
        ));
    }
}