1 | <?php |
||
9 | final class DuplicationDetected extends InvalidArgument implements AlreadyThere |
||
10 | { |
||
11 | /** |
||
12 | * Produces an exception for when the object is already in the map. |
||
13 | * |
||
14 | * @param string $class The class of the proposed object. |
||
15 | * @param string $id The identity that is already there. |
||
16 | * @return AlreadyThere The exception to throw. |
||
17 | */ |
||
18 | public static function in(string $class, string $id): AlreadyThere |
||
26 | } |
||
27 |