protected function putIntoCache($rootObject, $path, $type)
    {
        $cacheId = $this->cacheId($rootObject, $path);
        $this->typeCache[$cacheId] = $type;

        return $type;
    }
protected function putIntoCache($rootObject, $path, $type)
    {
        $cacheId = $this->cacheId($rootObject, $path);
        $this->typeCache[$cacheId] = $type;

        return $type;
    }
protected function putIntoCache ( $ rootObject , $ path , $ type ) { $ cacheId = $ this -> cacheId ( $ rootObject , $ path ) ; $ this -> typeCache [ $ cacheId ] = $ type ; return $ type ; }
Put a type into cache and return it.

@param object $rootObject
@param string $path
@param string $type

@return string
Put a type into cache and return it .