Tags Archives

Factory pattern

What is the Factory Method Pattern? Let’s implement it in Php!

Factory Method pattern is part of creational category of design patterns. It is involved in creating something. This something is a product that is loose coupled with the class that creates it (we can call it client). The Client holds a reference to the Creator (factory interface) for requesting a graphic or text product. The client ...