public function getAssignments(User $user)
    {
        $assignments = [];
        foreach ($this->getInternalServices() as $service) {
            $assignments = array_merge($assignments, $service->getAssignments($user));
        }

        return $assignments;
    }
public function getAssignments(User $user)
    {
        $assignments = [];
        foreach ($this->getInternalServices() as $service) {
            $assignments = array_merge($assignments, $service->getAssignments($user));
        }

        return $assignments;
    }
public function getAssignments ( User $ user ) { $ assignments = [ ] ; foreach ( $ this -> getInternalServices ( ) as $ service ) { $ assignments = array_merge ( $ assignments , $ service -> getAssignments ( $ user ) ) ; } return $ assignments ; }
Returns the deliveries available to a user

@param User $user
@return Assignment[] list of deliveries
Returns the deliveries available to a user