PHP implementation of Specification Pattern