Taking that idea just one step further, if you store the actual instance in that attribute (i.e., assign an object to it), then all references to this class can use that attribute.
- 7. Design Patterns
- from PHP Advanced and Object-Oriented Programming: Visual Quickpro Guide, Third Edition
- Publisher: Peachpit Press
- Released: September 2012
Share this highlighthttp://www.safaribooksonline.com/a/php-advanced-and/7527/