Code Coverage
 
Lines
Functions and Methods
Classes and Traits
Total
100.00% covered (success)
100.00%
1 / 1
100.00% covered (success)
100.00%
1 / 1
CRAP
100.00% covered (success)
100.00%
1 / 1
AlreadyMemberOrInvited
100.00% covered (success)
100.00%
1 / 1
100.00% covered (success)
100.00%
1 / 1
1
100.00% covered (success)
100.00%
1 / 1
 create
100.00% covered (success)
100.00%
1 / 1
100.00% covered (success)
100.00%
1 / 1
1
1<?php
2
3declare(strict_types=1);
4
5namespace App\Trip\Domain\Exceptions;
6
7use DomainException;
8
9/**
10 * The invitee already has access to the trip (owner or member) or a pending
11 * invitation. Maps to 409 — no duplicate invitations.
12 */
13final class AlreadyMemberOrInvited extends DomainException
14{
15    public static function create(): self
16    {
17        return new self('That user is already a member of the trip or has a pending invitation.');
18    }
19}