1 | <?php |
||
12 | final class DocumentNotFoundEventArgs extends LifecycleEventArgs |
||
13 | { |
||
14 | /** @var mixed */ |
||
15 | private $identifier; |
||
16 | |||
17 | /** @var bool */ |
||
18 | private $disableException = false; |
||
19 | |||
20 | /** |
||
21 | * @param mixed $identifier |
||
22 | */ |
||
23 | public function __construct(object $document, DocumentManager $dm, $identifier) |
||
28 | |||
29 | /** |
||
30 | * Retrieve associated identifier. |
||
31 | * |
||
32 | * @return mixed |
||
33 | */ |
||
34 | public function getIdentifier() |
||
38 | |||
39 | /** |
||
40 | * Indicates whether the proxy initialization exception is disabled. |
||
41 | */ |
||
42 | public function isExceptionDisabled() : bool |
||
46 | |||
47 | /** |
||
48 | * Disable the throwing of an exception |
||
49 | * |
||
50 | * This method indicates to the proxy initializer that the missing document |
||
51 | * has been handled and no exception should be thrown. This can't be reset. |
||
52 | */ |
||
53 | public function disableException(bool $disableException = true) : void |
||
57 | } |
||
58 |