summaryrefslogtreecommitdiff
path: root/vendor/doctrine/persistence/src/Persistence/Proxy.php
diff options
context:
space:
mode:
Diffstat (limited to 'vendor/doctrine/persistence/src/Persistence/Proxy.php')
-rw-r--r--vendor/doctrine/persistence/src/Persistence/Proxy.php39
1 files changed, 39 insertions, 0 deletions
diff --git a/vendor/doctrine/persistence/src/Persistence/Proxy.php b/vendor/doctrine/persistence/src/Persistence/Proxy.php
new file mode 100644
index 0000000..2c02f23
--- /dev/null
+++ b/vendor/doctrine/persistence/src/Persistence/Proxy.php
@@ -0,0 +1,39 @@
1<?php
2
3declare(strict_types=1);
4
5namespace Doctrine\Persistence;
6
7/**
8 * Interface for proxy classes.
9 *
10 * @template T of object
11 */
12interface Proxy
13{
14 /**
15 * Marker for Proxy class names.
16 */
17 public const MARKER = '__CG__';
18
19 /**
20 * Length of the proxy marker.
21 */
22 public const MARKER_LENGTH = 6;
23
24 /**
25 * Initializes this proxy if its not yet initialized.
26 *
27 * Acts as a no-op if already initialized.
28 *
29 * @return void
30 */
31 public function __load();
32
33 /**
34 * Returns whether this proxy is initialized or not.
35 *
36 * @return bool
37 */
38 public function __isInitialized();
39}