我如何在PHP5类中创建链接对象? 例如:
$myclass->foo->bar->baz();
$this->foo->bar->baz();
Not: $myclass->foo()->bar()->baz();
另请参阅:
http://www.talkphp.com/advanced-php-programming/1163-php5-method-chaining.html