| 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 | public static function forThe(object $object): self |
||
| 40 | } |
||
| 41 |