Lines 100.00% 1 / 1
Functions and Methods 100.00% 1 / 1
Classes and Traits 100.00% 1 / 1
Name Lines Functions and Methods CRAP Classes and Traits
AmbiguousBankException 100.00% 1 / 1 100.00% 1 / 1 1 100.00% 1 / 1
 forParsers 100.00% 1 / 1 100.00% 1 / 1 1
1<?php
2
3declare(strict_types=1);
4
5namespace Tomaj\BankMailsParser\Exception;
6
7/**
8 * More than one parser accepted the email. The facade does not pick the first one.
9 */
10final class AmbiguousBankException extends ParseException
11{
12    public static function forParsers(string ...$parsers): self
13    {
14        return new self('Email matches more than one bank parser: ' . implode(', ', $parsers));
15    }
16}