private function filterCustomMetaData($customMetaData)
    {
        foreach ($customMetaData as $key => $data) {
            if (!in_array($key, [$this->metadataFieldCount, $this->metadataFieldAverage])) {
                unset($customMetaData[$key]);
            }
        }

        return $customMetaData;
    }
private function filterCustomMetaData($customMetaData)
    {
        foreach ($customMetaData as $key => $data) {
            if (!in_array($key, [$this->metadataFieldCount, $this->metadataFieldAverage])) {
                unset($customMetaData[$key]);
            }
        }

        return $customMetaData;
    }
private function filterCustomMetaData ( $ customMetaData ) { foreach ( $ customMetaData as $ key => $ data ) { if ( ! in_array ( $ key , [ $ this -> metadataFieldCount , $ this -> metadataFieldAverage ] ) ) { unset ( $ customMetaData [ $ key ] ) ; } } return $ customMetaData ; }
Returns custom meta data fields which are related to rating.

@param array $customMetaData

@return array
Returns custom meta data fields which are related to rating .