Code Coverage |
||||||||||
Lines |
Functions and Methods |
Classes and Traits |
||||||||
| Total | |
100.00% |
1 / 1 |
|
100.00% |
1 / 1 |
CRAP | |
100.00% |
1 / 1 |
| EmailAlreadyInUse | |
100.00% |
1 / 1 |
|
100.00% |
1 / 1 |
1 | |
100.00% |
1 / 1 |
| of | |
100.00% |
1 / 1 |
|
100.00% |
1 / 1 |
1 | |||
| 1 | <?php |
| 2 | |
| 3 | declare(strict_types=1); |
| 4 | |
| 5 | namespace App\Identity\Domain\Exceptions; |
| 6 | |
| 7 | use App\Identity\Domain\ValueObject\Email; |
| 8 | use DomainException; |
| 9 | |
| 10 | final class EmailAlreadyInUse extends DomainException |
| 11 | { |
| 12 | public static function of(Email $email): self |
| 13 | { |
| 14 | return new self(sprintf('Email <%s> is already in use.', $email->value())); |
| 15 | } |
| 16 | } |