Total Complexity | 3 |
Total Lines | 15 |
Duplicated Lines | 0 % |
Coverage | 100% |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
7 | class InvalidMessage extends Exception |
||
8 | { |
||
9 | 3 | public static function invalidReference(string $reference): self |
|
10 | { |
||
11 | 3 | return new static("The reference on the CMSMS message may only contain 1 - 32 alphanumeric characters. Was given '{$reference}'"); |
|
12 | } |
||
13 | |||
14 | 2 | public static function invalidOriginator(string $originator): self |
|
15 | { |
||
16 | 2 | return new static("The originator on the CMSMS message may only contain 1 - 11 characters. Was given '{$originator}'"); |
|
17 | } |
||
18 | |||
19 | 1 | public static function invalidMultipart(int $minimum, int $maximum): self |
|
22 | } |
||
23 | } |
||
24 |