E_mE

Catmando or Chairman Meow?
Fri Mar 28

Fluent Interface’s

By unconcious chance, I implemented the Fluent interface form in a project I’m writing, for those who are unaware of what fluent interface style is it looks like this:

$myObj->initialise()
            ->runMyFunc()
            ->cleanUp();

 After researching PHPUnit, I got to chapter 11 and found out the caption “Fluent Interface” and was confused, so i followed a link to this site: http://martinfowler.com/bliki/FluentInterface.html and it explained all, as you can imagine i was pleasently surprised.