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 | ||||||
|---|---|---|---|---|---|---|---|---|---|---|
| MultipleTransactionsException | 100.00% | 1 / 1 | 100.00% | 1 / 1 | 1 | 100.00% | 1 / 1 | |||
| useParseAll | 100.00% | 1 / 1 | 100.00% | 1 / 1 | 1 | |||||
| 1 | <?php | |
| 2 | ||
| 3 | declare(strict_types=1); | |
| 4 | ||
| 5 | namespace Tomaj\BankMailsParser\Exception; | |
| 6 | ||
| 7 | /** | |
| 8 | * The email contains more than one transaction. Call parseAll(). | |
| 9 | */ | |
| 10 | final class MultipleTransactionsException extends ParseException | |
| 11 | { | |
| 12 | public static function useParseAll(int $count): self | |
| 13 | { | |
| 14 | return new self(sprintf('Email contains %d transactions. Use parseAll().', $count)); | |
| 15 | } | |
| 16 | } |