phpprotip.com
Magic __call() vs. multiple setters
I recently came across a situation where a few of my setProperty() methods where exactly the same. Since I’ve gotten into improving my coding, this bugged me because it was repetitious code. …