public function getFunction($functionName)
    {
        $lowFunc  = strtolower($functionName);
        $cacheKey = self::CACHE_KEY_FUNCS . $lowFunc;

        $reflectedFunc = $this->cache->fetch($cacheKey);

        if (false === $reflectedFunc) {
            $reflectedFunc = new ReflectionFunction($functionName);
            $this->cache->store($cacheKey, $reflectedFunc);
        }

        return $reflectedFunc;
    }
public function getFunction($functionName)
    {
        $lowFunc  = strtolower($functionName);
        $cacheKey = self::CACHE_KEY_FUNCS . $lowFunc;

        $reflectedFunc = $this->cache->fetch($cacheKey);

        if (false === $reflectedFunc) {
            $reflectedFunc = new ReflectionFunction($functionName);
            $this->cache->store($cacheKey, $reflectedFunc);
        }

        return $reflectedFunc;
    }
public function getFunction ( $ functionName ) { $ lowFunc = strtolower ( $ functionName ) ; $ cacheKey = self :: CACHE_KEY_FUNCS . $ lowFunc ; $ reflectedFunc = $ this -> cache -> fetch ( $ cacheKey ) ; if ( false === $ reflectedFunc ) { $ reflectedFunc = new ReflectionFunction ( $ functionName ) ; $ this -> cache -> store ( $ cacheKey , $ reflectedFunc ) ; } return $ reflectedFunc ; }
Retrieves and caches a reflection for the specified function.

@since 0.3.0

@param string $functionName Name of the function to get a reflection for.

@return ReflectionFunction ReflectionFunction object for the specified function.
Retrieves and caches a reflection for the specified function .