1 | <?php |
||
17 | class DocumentNotFoundEventArgs extends LifecycleEventArgs |
||
18 | { |
||
19 | /** @var mixed */ |
||
20 | private $identifier; |
||
21 | |||
22 | /** @var bool */ |
||
23 | private $disableException = false; |
||
24 | |||
25 | /** |
||
26 | * @param mixed $identifier |
||
27 | */ |
||
28 | 9 | public function __construct(object $document, DocumentManager $dm, $identifier) |
|
36 | |||
37 | /** |
||
38 | * Retrieve associated identifier. |
||
39 | * |
||
40 | * @return mixed |
||
41 | */ |
||
42 | public function getIdentifier() |
||
46 | |||
47 | /** |
||
48 | * Indicates whether the proxy initialization exception is disabled. |
||
49 | */ |
||
50 | 9 | public function isExceptionDisabled() : bool |
|
54 | |||
55 | /** |
||
56 | * Disable the throwing of an exception |
||
57 | * |
||
58 | * This method indicates to the proxy initializer that the missing document |
||
59 | * has been handled and no exception should be thrown. This can't be reset. |
||
60 | */ |
||
61 | 1 | public function disableException(bool $disableException = true) : void |
|
65 | } |
||
66 |
If you suppress an error, we recommend checking for the error condition explicitly: