mirror of
https://github.com/codeguy/php-the-right-way.git
synced 2025-08-11 16:23:57 +02:00
Merge pull request #148 from sydneyarikan/gh-pages
Grammar edtion on the design patterns page
This commit is contained in:
@@ -14,7 +14,7 @@ your code easier to manage and easier for others to understand.
|
|||||||
|
|
||||||
## Factory
|
## Factory
|
||||||
|
|
||||||
One of the most commonly used design patterns is the factory pattern. This is a pattern is simply a class that creates
|
One of the most commonly used design patterns is the factory pattern. In this pattern, a class simply creates
|
||||||
the object you want to use. Consider the following example of the factory pattern:
|
the object you want to use. Consider the following example of the factory pattern:
|
||||||
|
|
||||||
{% highlight php %}
|
{% highlight php %}
|
||||||
|
Reference in New Issue
Block a user