Zephir\FunctionCall::getReflector PHP Method

getReflector() public method

Process the ReflectionFunction for the specified function name
public getReflector ( string $funcName ) : ReflectionFunction
$funcName string
return ReflectionFunction
    public function getReflector($funcName)
    {
        /**
         * Check if the optimizer is already cached
         */
        if (!isset(self::$_functionReflection[$funcName])) {
            try {
                $reflectionFunction = new \ReflectionFunction($funcName);
            } catch (\Exception $e) {
                $reflectionFunction = null;
            }
            self::$_functionReflection[$funcName] = $reflectionFunction;
            $this->_reflection = $reflectionFunction;
            return $reflectionFunction;
        }
        $reflectionFunction = self::$_functionReflection[$funcName];
        $this->_reflection = $reflectionFunction;
        return $reflectionFunction;
    }