Proxy.php 603 B

1234567891011121314151617181920212223242526272829303132333435
  1. <?php
  2. namespace Doctrine\Persistence;
  3. /**
  4. * Interface for proxy classes.
  5. */
  6. interface Proxy
  7. {
  8. /**
  9. * Marker for Proxy class names.
  10. */
  11. public const MARKER = '__CG__';
  12. /**
  13. * Length of the proxy marker.
  14. */
  15. public const MARKER_LENGTH = 6;
  16. /**
  17. * Initializes this proxy if its not yet initialized.
  18. *
  19. * Acts as a no-op if already initialized.
  20. *
  21. * @return void
  22. */
  23. public function __load();
  24. /**
  25. * Returns whether this proxy is initialized or not.
  26. *
  27. * @return bool
  28. */
  29. public function __isInitialized();
  30. }