Total Complexity | 2 |
Total Lines | 24 |
Duplicated Lines | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
17 | class AddressDoesNotExist extends InvalidArgumentException |
||
18 | { |
||
19 | /** |
||
20 | * Creates an exception with an error message based on the address name. |
||
21 | * |
||
22 | * @param string $addressName the address name |
||
23 | * |
||
24 | * @return static |
||
25 | */ |
||
26 | public static function create(string $addressName) |
||
29 | } |
||
30 | |||
31 | /** |
||
32 | * Creates an exception with an error message based on the address ID. |
||
33 | * |
||
34 | * @param int $addressId the address ID which does not exist in the database |
||
35 | * |
||
36 | * @return static |
||
37 | */ |
||
38 | public static function withId(int $addressId) |
||
43 |