Skip to content

Latest commit

 

History

History
44 lines (30 loc) · 784 Bytes

README.rst

File metadata and controls

44 lines (30 loc) · 784 Bytes

Purpose

To interface to anything that is expensive or impossible to duplicate.

Examples

  • Doctrine2 uses proxies to implement framework magic (e.g. lazy initialization) in them, while the user still works with his own entity classes and will never use nor touch the proxies

UML Diagram

Alt Proxy UML Diagram

Code

You can also find these code on GitHub

Record.php

.. literalinclude:: Record.php
   :language: php
   :linenos:

RecordProxy.php

.. literalinclude:: RecordProxy.php
   :language: php
   :linenos:

Test