Summary

In this chapter, we started learning some critical PHP design patterns related to the creation of objects. We learned about various different Factory design patterns and how they can make your code more inline with common standards. We also covered how the Builder design pattern can help you avoid excessive arguments in your constructors. We also learned about lazy instantiation and how it can help your code be more efficient. Finally, we learned about how we can duplicate objects from prototype objects using the Prototype design pattern.

Continuing on with design patterns, in the next chapter we will talk about Structural design patterns.

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
18.226.251.70