I'd just like to note that that is not a particularly OO solution. You've essentially created a namespaced function. While this is still preferable to a bare function in a heterogenous helpers function file, it's certainly not a pure OO way of accomplishing the encapsulation of the InputSanitizer.
yogo|13 years ago
rmrfrmrf|13 years ago
unknown|13 years ago
[deleted]
z92|13 years ago
Shorel|13 years ago
Encapsulation is overrated. So overrated that you need another fancy concept like 'dependency injection' when it just gets in the way.
The static function is simple and because of that, it is good.
eru|13 years ago