private function isStateGroupUsedForLimitation($stateGroupId, array $limitationValues)
    {
        $objectStateHandler = $this->persistence->objectStateHandler();
        $states = $objectStateHandler->loadObjectStates($stateGroupId);

        foreach ($states as $state) {
            // check using loose types as limitation values are strings and id's can be int
            if (in_array($state->id, $limitationValues)) {
                return true;
            }
        }

        return false;
    }
private function isStateGroupUsedForLimitation($stateGroupId, array $limitationValues)
    {
        $objectStateHandler = $this->persistence->objectStateHandler();
        $states = $objectStateHandler->loadObjectStates($stateGroupId);

        foreach ($states as $state) {
            // check using loose types as limitation values are strings and id's can be int
            if (in_array($state->id, $limitationValues)) {
                return true;
            }
        }

        return false;
    }
private function isStateGroupUsedForLimitation ( $ stateGroupId , array $ limitationValues ) { $ objectStateHandler = $ this -> persistence -> objectStateHandler ( ) ; $ states = $ objectStateHandler -> loadObjectStates ( $ stateGroupId ) ; foreach ( $ states as $ state ) { // check using loose types as limitation values are strings and id's can be int if ( in_array ( $ state -> id , $ limitationValues ) ) { return true ; } } return false ; }
Checks if the State Group contains at least one State that is used by Limitation.

@param int $stateGroupId
@param string[] $limitationValues

@return bool
Checks if the State Group contains at least one State that is used by Limitation .