2010-11-29 01:53:16
class Test_Method_Chain
{
    public function One()
    {
        echo "One" . PHP_EOL;
        return $this;
    }
 
    public function Two()
    {
        echo "Two" . PHP_EOL;
        return $this;
    }
 
    public function Three()
    {
        echo "Three" . PHP_EOL;
        return $this;
    }
}
 
$test = new Test_Method_Chain();
 
$test->One()->Two()->Three();
Invalid Email or Password