So I have some code looking like this at the moment:
$filter = new \stdClass();
$queryObj = $this->getpost['filter'];
$filters = new \stdClass();
$filters->team = $queryObj['team'];
$filters->skill = $queryObj['skill'];
$filters->division = $queryObj['division'];
$filter->filters = $filters;
$users = $managerStatistics->getManagerDeliveryData($filter);
I fellt the need to do this because in the getManagerDeliveryData(§filter), there is a "foreach $filter->filters"..
Does anyone know how to do this in a better looking way? This looks messy to me but I'm not sure what to do here..