Pheal\Pheal::__call PHP Method

__call() public method

Magic __call method, will translate all function calls to object to API requests
public __call ( String $name, array $arguments ) : Pheal\Core\Result
$name String name of the function
$arguments array an array of arguments
return Pheal\Core\Result
    public function __call($name, $arguments)
    {
        if (count($arguments) < 1 || !is_array($arguments[0])) {
            $arguments[0] = array();
        }
        $scope = $this->scope;
        return $this->requestXml($scope, $name, $arguments[0]);
        // we only use the
        //first argument params need to be passed as an array, due to naming
    }