Posts Tagged ‘php chainable’

My implementation of PHP Chainable March 2, 2010 No Comments

I needed a way to use method chainability on objects without having to modify the actual class (e.g. extending an Chainable class or implementing one) and without having to “return $this” on every method. I came up with, what I believe to be, an elegant simple solution – a generic approach that can be used [...]