KnowledgeHub
Questions
Tags
Users
Search
Alex Rivera
|
Logout
Edit Question
Title
Body
I've seen many times Zend Framework using return $this; pattern style - and from my point of view: Pro: seems its quite not bad pattern style for chaining many actions on the same object and making your code shorter. Con: code looks a bit weird when you see that object returns itself in the method, which does something else (e.g. setter for some property) Is it really good pattern practice or maybe an anti- pattern practice? EDIT: well it was a little too much from my side to call it "pattern", thanks everyone for pointing me to right direction!
Tags (comma-separated)
Save Edits
Cancel