mirror of
https://github.com/DesignPatternsPHP/DesignPatternsPHP.git
synced 2025-02-24 09:42:24 +01:00
README Proxy
This commit is contained in:
parent
c8d88b0b08
commit
4d916f3ffe
9
Proxy/README.md
Normal file
9
Proxy/README.md
Normal file
@ -0,0 +1,9 @@
|
|||||||
|
# Proxy
|
||||||
|
|
||||||
|
## 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
|
@ -3,15 +3,7 @@
|
|||||||
namespace DesignPatterns\Proxy;
|
namespace DesignPatterns\Proxy;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Proxy pattern
|
* class Record
|
||||||
*
|
|
||||||
* 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
|
|
||||||
*
|
|
||||||
*/
|
*/
|
||||||
class Record
|
class Record
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user