Created
March 9, 2018 06:21
-
-
Save jaynarayan89/87bfad6f4203088f8d513fe30e0c2041 to your computer and use it in GitHub Desktop.
thoughts about decorator pattern
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
lorenzo [9:27 PM] | |
I sued decorator for a bunch of stuff, but where it is more obvious is in the result set | |
the statement object is a decorator for pdo statement | |
the code that casts the results to the right type (int, dates…) is a decorator of the statement | |
the code that converts the rows to entities is a decorator of the statement… | |
formatResults is a decorator of the result set |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment