protected static function removeResourcesNotIncluded(array &$mappings, $parentType, array $inArrayValue)
    {
        foreach ($inArrayValue as $position => $includeValue) {
            if (self::isDeleteableIncludedResource($mappings, $parentType, $includeValue)) {
                unset($inArrayValue[$position]);
            }
        }

        return $inArrayValue;
    }
protected static function removeResourcesNotIncluded(array &$mappings, $parentType, array $inArrayValue)
    {
        foreach ($inArrayValue as $position => $includeValue) {
            if (self::isDeleteableIncludedResource($mappings, $parentType, $includeValue)) {
                unset($inArrayValue[$position]);
            }
        }

        return $inArrayValue;
    }
protected static function removeResourcesNotIncluded ( array & $ mappings , $ parentType , array $ inArrayValue ) { foreach ( $ inArrayValue as $ position => $ includeValue ) { if ( self :: isDeleteableIncludedResource ( $ mappings , $ parentType , $ includeValue ) ) { unset ( $ inArrayValue [ $ position ] ) ; } } return $ inArrayValue ; }
Remove those resources that do not to appear in the getIncludedResources array.

@param array  $mappings
@param string $parentType
@param array  $inArrayValue

@return array
Remove those resources that do not to appear in the getIncludedResources array .