Today, while reading some of my PHP books, I’ve came across a simple and clear definition for what a “factory” is and I decided to share it.

A factory is a class or method with the responsibility for generating objects.

I’m obviously not writing this post for those who are already well-versed in the ways of the coders, but for those who are trying to become well-versed, and are seeking clarification wherever they can find it. I hope you guys find this helpful.

Leave a comment

Your email address will not be published. Required fields are marked *