1 | <?php |
||
15 | final class IdentityNotFound extends InvalidArgument implements NoSuchObject |
||
16 | { |
||
17 | /** |
||
18 | * Produces an exception for when the object is not in the map. |
||
19 | * |
||
20 | * @param string $class The class of the requested object. |
||
21 | * @param string $id The identity that is not there. |
||
22 | * @return IdentityNotFound The exception to throw. |
||
23 | */ |
||
24 | public static function requesting(string $class, string $id): self |
||
32 | |||
33 | /** |
||
34 | * Produces an exception for when the object instance is not in the map. |
||
35 | * |
||
36 | * @param object $object The requested object that is not registered. |
||
37 | * @return IdentityNotFound The exception to throw. |
||
38 | */ |
||
39 | public static function forThe(object $object): self |
||
46 | } |
||
47 |