2 ms·
I personally would put this fallback logic into a Factory class/method and make the $cache parameter required for the constructor. I like to keep my constructor
by xrstf 12y ago
I personally would put this fallback logic into a Factory class/method and make the $cache parameter required for the constructor. I like to keep my constructors as simple and cheap as possible and usually have some sort of factory code somewhere anyway.