public static function invokeMethod($class, $name) {
        $property = new \ReflectionMethod($class, $name);
        $property->setAccessible(true);

        return $property->invoke($class);
    }
public static function invokeMethod($class, $name) {
        $property = new \ReflectionMethod($class, $name);
        $property->setAccessible(true);

        return $property->invoke($class);
    }
public static function invokeMethod ( $ class , $ name ) { $ property = new \ ReflectionMethod ( $ class , $ name ) ; $ property -> setAccessible ( true ) ; return $ property -> invoke ( $ class ) ; }
Calls the specified method. If the method is protected, this restriction is ignored.

@param mixed $class The class name, that contains the method.
@param string $name The name of the method.

@return mixed
Calls the specified method . If the method is protected this restriction is ignored .