Code Coverage |
||||||||||
Lines |
Functions and Methods |
Classes and Traits |
||||||||
| Total | |
100.00% |
1 / 1 |
|
100.00% |
1 / 1 |
CRAP | |
100.00% |
1 / 1 |
| InvalidEmailException | |
100.00% |
1 / 1 |
|
100.00% |
1 / 1 |
1 | |
100.00% |
1 / 1 |
| create | |
100.00% |
1 / 1 |
|
100.00% |
1 / 1 |
1 | |||
| 1 | <?php |
| 2 | |
| 3 | declare(strict_types=1); |
| 4 | |
| 5 | namespace App\Exception\Entity\User; |
| 6 | |
| 7 | use InvalidArgumentException; |
| 8 | |
| 9 | class InvalidEmailException extends InvalidArgumentException |
| 10 | { |
| 11 | public static function create(string $email): self |
| 12 | { |
| 13 | return new self(sprintf('Invalid e-mail got [ %s ]', $email)); |
| 14 | } |
| 15 | } |