mirror of
https://github.com/DesignPatternsPHP/DesignPatternsPHP.git
synced 2025-02-24 01:32:22 +01:00
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)