mirror of
https://github.com/DesignPatternsPHP/DesignPatternsPHP.git
synced 2025-02-24 17:52:25 +01:00
Merge pull request #50 from johnikx/prototype-improvement
added missing barPrototype
This commit is contained in:
commit
fc78f0636c
@ -10,3 +10,8 @@ for ($i = 0; $i < 10000; $i++) {
|
|||||||
$book = clone $fooPrototype;
|
$book = clone $fooPrototype;
|
||||||
$book->setTitle('Foo Book No ' . $i);
|
$book->setTitle('Foo Book No ' . $i);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
for ($i = 0; $i < 5000; $i++) {
|
||||||
|
$book = clone $barPrototype;
|
||||||
|
$book->setTitle('Bar Book No ' . $i);
|
||||||
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user