public function callMethod($class, $method, array $args = array())
    {
        $method = $this->findMethod($class, $method);
        $method->setAccessible(true);

        return $method->invokeArgs(
            is_object($class) ? $class : null,
            $args
        );
    }
public function callMethod($class, $method, array $args = array())
    {
        $method = $this->findMethod($class, $method);
        $method->setAccessible(true);

        return $method->invokeArgs(
            is_object($class) ? $class : null,
            $args
        );
    }
public function callMethod ( $ class , $ method , array $ args = array ( ) ) { $ method = $ this -> findMethod ( $ class , $ method ) ; $ method -> setAccessible ( true ) ; return $ method -> invokeArgs ( is_object ( $ class ) ? $ class : null , $ args ) ; }
Calls a class or object method.

@param object|string $class  The class name or object.
@param string        $method The method name.
@param array         $args   The method arguments.

@return mixed The method result.
Calls a class or object method .