README Prototype

This commit is contained in:
Dominik Liebler 2013-09-24 14:02:52 +02:00
parent 02d616a0b2
commit c8d88b0b08
2 changed files with 10 additions and 8 deletions

View File

@ -3,14 +3,7 @@
namespace DesignPatterns\Prototype;
/**
* Prototype pattern
*
* Purpose:
* to avoid the cost of creating objects the standard way (new Foo()) and instead create a prototype and clone it
*
* Examples:
* - Large amounts of data (e.g. create 1,000,000 rows in a database at once via a ORM)
*
* class BookPrototype
*/
abstract class BookPrototype
{

9
Prototype/README.md Normal file
View File

@ -0,0 +1,9 @@
# Prototype
## Purpose
To avoid the cost of creating objects the standard way (new Foo()) and instead create a prototype and clone it
## Examples
* Large amounts of data (e.g. create 1,000,000 rows in a database at once via a ORM)