public static function getMethodReflection($objectOrName, $methodName)
    {
        $cached = static::getReflectionFromCache(static::REFLECTION_METHOD, $objectOrName, $methodName);
        if ($cached !== null) {
            return $cached;
        }
        try {
            $reflection = new \ReflectionMethod($objectOrName, $methodName);
            return static::setReflectionToCache($reflection, static::REFLECTION_METHOD, $objectOrName, $methodName);
        } catch (\ReflectionException $exception) {
            $reflection = null;
        }
        return $reflection;
    }
public static function getMethodReflection($objectOrName, $methodName)
    {
        $cached = static::getReflectionFromCache(static::REFLECTION_METHOD, $objectOrName, $methodName);
        if ($cached !== null) {
            return $cached;
        }
        try {
            $reflection = new \ReflectionMethod($objectOrName, $methodName);
            return static::setReflectionToCache($reflection, static::REFLECTION_METHOD, $objectOrName, $methodName);
        } catch (\ReflectionException $exception) {
            $reflection = null;
        }
        return $reflection;
    }
public static function getMethodReflection ( $ objectOrName , $ methodName ) { $ cached = static :: getReflectionFromCache ( static :: REFLECTION_METHOD , $ objectOrName , $ methodName ) ; if ( $ cached !== null ) { return $ cached ; } try { $ reflection = new \ ReflectionMethod ( $ objectOrName , $ methodName ) ; return static :: setReflectionToCache ( $ reflection , static :: REFLECTION_METHOD , $ objectOrName , $ methodName ) ; } catch ( \ ReflectionException $ exception ) { $ reflection = null ; } return $ reflection ; }
Get class method reflection
@param string|object $objectOrName
@param string $methodName
@return null|\ReflectionMethod
Get class method reflection