public function call($className, $method, $arguments = null)
    {
        $callable = [$className, $method];
        if ($arguments === null) {
            return call_user_func($callable);
        } else {
            return call_user_func_array($callable, $arguments);
        }
    }
public function call($className, $method, $arguments = null)
    {
        $callable = [$className, $method];
        if ($arguments === null) {
            return call_user_func($callable);
        } else {
            return call_user_func_array($callable, $arguments);
        }
    }
public function call ( $ className , $ method , $ arguments = null ) { $ callable = [ $ className , $ method ] ; if ( $ arguments === null ) { return call_user_func ( $ callable ) ; } else { return call_user_func_array ( $ callable , $ arguments ) ; } }
Calls a method

@param string $className class name
@param string $method method name
@param array $arguments
@return mixed
Calls a method