From http://stackoverflow.com/questions/3724112/php-method-chaining