private function areObjectStatesMatchingTheLimitation(array $objectStateIds, array $limitationValues)
    {
        foreach ($objectStateIds as $objectStateId) {
            // check using loose types as limitation values are strings and id's can be int
            if (!in_array($objectStateId, $limitationValues)) {
                return false;
            }
        }

        return true;
    }
private function areObjectStatesMatchingTheLimitation(array $objectStateIds, array $limitationValues)
    {
        foreach ($objectStateIds as $objectStateId) {
            // check using loose types as limitation values are strings and id's can be int
            if (!in_array($objectStateId, $limitationValues)) {
                return false;
            }
        }

        return true;
    }
private function areObjectStatesMatchingTheLimitation ( array $ objectStateIds , array $ limitationValues ) { foreach ( $ objectStateIds as $ objectStateId ) { // check using loose types as limitation values are strings and id's can be int if ( ! in_array ( $ objectStateId , $ limitationValues ) ) { return false ; } } return true ; }
Verifies if all the Object States are matching the Limitation Values.

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

@return bool
Verifies if all the Object States are matching the Limitation Values .