10
As long as your method returns an object you can call the methods of that object too, and so on.
So here's an example of how you can chain methods of a class.
<?php
class MyTest {
public function Hello() {
echo "Hello ";
return $this;
}
public function World() {
echo "World!";
}
}
$h = new MyTest();
$h->Hello()->World();
?>