soliantconsulting/SimpleFM

View on GitHub
src/Repository/Query/Exception/EmptyQueryException.php

Summary

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

namespace Soliant\SimpleFM\Repository\Query\Exception;

use DomainException;

final class EmptyQueryException extends DomainException implements ExceptionInterface
{
    public static function fromEmptyQueryArray() : self
    {
        return new self('Find query requires at least one query');
    }
}