concept Fowler in category php

appears as: Fowler
PHP in Action: Objects, Design, Agility

This is an excerpt from Manning's book PHP in Action: Objects, Design, Agility.

According to Fowler, the two main objectives of refactoring are to remove duplication and make code easier to read and understand.

According to Fowler, what to return from Finder methods is tricky in a Table Data Gateway. What should the table row look like when you use it in the application? Should it be an array or an object? What kind of array or object? And what happens when you need to return a number of rows from the database?

As mentioned, the principle of self-persistent objects is the theme of Nock’s Active Domain Object pattern and of Fowler’s Row Data Gateway and Active Record patterns.