private function groupLimitationValues(array $limitationValues)
    {
        $objectStateHandler = $this->persistence->objectStateHandler();
        $stateGroups = $objectStateHandler->loadAllGroups();
        $groupedLimitationValues = [];
        foreach ($stateGroups as $stateGroup) {
            $states = $objectStateHandler->loadObjectStates($stateGroup->id);
            $stateIds = array_map(function ($state) {
                return $state->id;
            }, $states);
            $limitationValuesGroup = array_intersect($stateIds, $limitationValues);
            if (!empty($limitationValuesGroup)) {
                $groupedLimitationValues[] = array_values($limitationValuesGroup);
            }
        }

        return $groupedLimitationValues;
    }
private function groupLimitationValues(array $limitationValues)
    {
        $objectStateHandler = $this->persistence->objectStateHandler();
        $stateGroups = $objectStateHandler->loadAllGroups();
        $groupedLimitationValues = [];
        foreach ($stateGroups as $stateGroup) {
            $states = $objectStateHandler->loadObjectStates($stateGroup->id);
            $stateIds = array_map(function ($state) {
                return $state->id;
            }, $states);
            $limitationValuesGroup = array_intersect($stateIds, $limitationValues);
            if (!empty($limitationValuesGroup)) {
                $groupedLimitationValues[] = array_values($limitationValuesGroup);
            }
        }

        return $groupedLimitationValues;
    }
private function groupLimitationValues ( array $ limitationValues ) { $ objectStateHandler = $ this -> persistence -> objectStateHandler ( ) ; $ stateGroups = $ objectStateHandler -> loadAllGroups ( ) ; $ groupedLimitationValues = [ ] ; foreach ( $ stateGroups as $ stateGroup ) { $ states = $ objectStateHandler -> loadObjectStates ( $ stateGroup -> id ) ; $ stateIds = array_map ( function ( $ state ) { return $ state -> id ; } , $ states ) ; $ limitationValuesGroup = array_intersect ( $ stateIds , $ limitationValues ) ; if ( ! empty ( $ limitationValuesGroup ) ) { $ groupedLimitationValues [ ] = array_values ( $ limitationValuesGroup ) ; } } return $ groupedLimitationValues ; }
Groups limitation values by the State Group.

@param string[] $limitationValues

@return int[][]
Groups limitation values by the State Group .