The Artima Developer Community
Sponsored Link

PHP Buzz Forum
20 PHP5 Setters Should Return $this 12

0 replies on 1 page.

Welcome Guest
  Sign In

Go back to the topic listing  Back to Topic List Click to reply to this topic  Reply to this Topic Click to search messages in this forum  Search Forum Click for a threaded view of the topic  Threaded View   
Previous Topic   Next Topic
Flat View: This topic has 0 replies on 1 page
Jason Sweat

Posts: 150
Nickname: sweatje
Registered: Sep, 2004

Jason Sweat is blogging about PHP
20 PHP5 Setters Should Return $this 12 Posted: Nov 15, 2004 5:06 PM
Reply to this message Reply

This post originated from an RSS feed registered with PHP Buzz by Jason Sweat.
Original Post: 20 PHP5 Setters Should Return $this 12
Feed Title: Jason E. Sweat's weblog
Feed URL: http://blog.casey-sweat.us/?feed=rss2
Feed Description: Blogging about whatever interests me at the moment, mainly PHP, web application and Gentoo Linux.
Latest PHP Buzz Posts
Latest PHP Buzz Posts by Jason Sweat
Latest Posts From Jason E. Sweat's weblog

Advertisement
113 I think that as a convention, I will now have all setters return $this instead of null. I arrived at this decision from messing around with the Specification design pattern ("Domain Driven Design" by Eric Evans, pg. 224). Doing so allowes me to trim several lines, and ... 10

Read: 20 PHP5 Setters Should Return $this 12

Topic: Del.icio.us is pis.sing me.off Previous Topic   Next Topic Topic: phpm updated

Sponsored Links



Google
  Web Artima.com   

Copyright © 1996-2019 Artima, Inc. All Rights Reserved. - Privacy Policy - Terms of Use