mirror of
https://github.com/DesignPatternsPHP/DesignPatternsPHP.git
synced 2025-07-31 20:20:15 +02:00
README Proxy
This commit is contained in:
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;
|
||||
|
||||
/**
|
||||
* Proxy pattern
|
||||
*
|
||||
* 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
|
||||
{
|
||||
|
Reference in New Issue
Block a user