public function getTrips()
    {
        $trips = $this->trips;
        usort($trips, function (Trip $a, Trip $b) {
            return $a->compareWith($b);
        });

        return new \ArrayIterator($trips);
    }
public function getTrips()
    {
        $trips = $this->trips;
        usort($trips, function (Trip $a, Trip $b) {
            return $a->compareWith($b);
        });

        return new \ArrayIterator($trips);
    }
public function getTrips ( ) { $ trips = $ this -> trips ; usort ( $ trips , function ( Trip $ a , Trip $ b ) { return $ a -> compareWith ( $ b ) ; } ) ; return new \ ArrayIterator ( $ trips ) ; }
List of trips, ordered by departure time
@return \ArrayIterator|Trip[]
List of trips ordered by departure time