Skip to content

Instantly share code, notes, and snippets.

@davidreuss
Created May 19, 2011 10:28
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save davidreuss/980512 to your computer and use it in GitHub Desktop.
Save davidreuss/980512 to your computer and use it in GitHub Desktop.
php setter foo
<?php
$foo->set1(1)
->set2(2)
->set3(3);
// vs.
$foo->set1(1);
$foo->set2(2);
$foo->set3(3);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment