PHP implementation of LINQ 2 Objects