From 4d916f3ffec14d5371e6d5e027951ed162ec6fc2 Mon Sep 17 00:00:00 2001 From: Dominik Liebler Date: Tue, 24 Sep 2013 14:04:00 +0200 Subject: [PATCH] README Proxy --- Proxy/README.md | 9 +++++++++ Proxy/Record.php | 10 +--------- 2 files changed, 10 insertions(+), 9 deletions(-) create mode 100644 Proxy/README.md diff --git a/Proxy/README.md b/Proxy/README.md new file mode 100644 index 0000000..3ee37ef --- /dev/null +++ b/Proxy/README.md @@ -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 diff --git a/Proxy/Record.php b/Proxy/Record.php index 722d946..28d861c 100644 --- a/Proxy/Record.php +++ b/Proxy/Record.php @@ -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 {