src/Graviton/DocumentBundle/Serializer/Handler/HashHandler.php
private function getLocationCounter($location)
    {
        $locationHash = md5(implode(',', $location));
        if (!isset($this->seenCounter[$locationHash])) {
            $this->seenCounter[$locationHash] = 0;
        } else {
            $this->seenCounter[$locationHash]++;
        }
        return $this->seenCounter[$locationHash];
    }
private function getLocationCounter($location)
    {
        $locationHash = md5(implode(',', $location));
        if (!isset($this->seenCounter[$locationHash])) {
            $this->seenCounter[$locationHash] = 0;
        } else {
            $this->seenCounter[$locationHash]++;
        }
        return $this->seenCounter[$locationHash];
    }
private function getLocationCounter ( $ location ) { $ locationHash = md5 ( implode ( ',' , $ location ) ) ; if ( ! isset ( $ this -> seenCounter [ $ locationHash ] ) ) { $ this -> seenCounter [ $ locationHash ] = 0 ; } else { $ this -> seenCounter [ $ locationHash ] ++ ; } return $ this -> seenCounter [ $ locationHash ] ; }
convenience function for the location counting for the "sequential array case" as described above.

@param array $location the current path from the serializer

@return int the counter
convenience function for the location counting for the sequential array case as described above .