| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Name | Name | Last commit date | ||
|---|---|---|---|---|
parent directory.. | ||||
To avoid the cost of creating objects the standard way (new Foo()) and instead create a prototype and clone it.
You can also find these code on GitHub
index.php
.. literalinclude:: index.php :language: php :linenos:
BookPrototype.php
.. literalinclude:: BookPrototype.php :language: php :linenos:
BarBookPrototype.php
.. literalinclude:: BarBookPrototype.php :language: php :linenos:
FooBookPrototype.php
.. literalinclude:: FooBookPrototype.php :language: php :linenos:
| Back | FazBrowse Home | New Git URL |