Returns the vote currently in progress.
@param $multicall
@return Structures\Vote
162695
function getCurrentCallVote($multicall = false)
    {
        if ($multicall) {
            return $this->execute(ucfirst(__FUNCTION__), array(), $this->structHandler('Vote'));
        }
        return Structures\Vote::fromArray($this->execute(ucfirst(__FUNCTION__)));
    }
538689
private function getCallableResult()
    {
        if (is_callable($this->callback)) {
            return call_user_func_array($this->callback, (array) $this->callbackArguments);
        } elseif (is_string($this->callback) || $this->callback instanceof Markup) {
            // Insert the 'callback' as a string.
            return (string) $this->callback;
        }

        try {
            $msg = sprintf('Snippet loading failed with callable %s', Serialization::dump($this->callback));
        } catch (DumpException $e) {
            $msg = sprintf('Snippet loading failed with an unknown callback.');
        }

        throw new \RuntimeException($msg);
    }
1181182
static public function getCaller()
    {
        $backtrace = debug_backtrace();
        array_shift($backtrace);
        $current = array_shift($backtrace);
        $caller = isset($backtrace[0]) ? $backtrace[0] : $current;
        if (!isset($caller['class']))  $caller['class'] = null;
        if (!isset($caller['object'])) $caller['object'] = null;
        return $caller;
    }
158083
function setApiVersion($version, $multicall = false)
    {
        if (!is_string($version)) {
            throw new InvalidArgumentException('version = ' . print_r($version, true));
        }

        return $this->execute(ucfirst(__FUNCTION__), array($version), $multicall);
    }
51687
public function execute($methodName, $params = array(), $multicall = false)
    {
        if ($multicall) {
            $this->xmlrpcClient->addCall($methodName, $params);
            $this->multicallHandlers[] = $multicall;
        } else {
            return $this->xmlrpcClient->query($methodName, $params);
        }
    }
338530
public function fromCall(Call $call): CallVerifier
    {
        return new CallVerifier(
            $call,
            $this->matcherFactory,
            $this->matcherVerifier,
            $this->generatorVerifierFactory,
            $this->iterableVerifierFactory,
            $this->assertionRecorder,
            $this->assertionRenderer
        );
    }
66389
function setCallVoteRatio($ratio, $multicall = false)
    {
        if (!Structures\VoteRatio::isRatio($ratio)) {
            throw new InvalidArgumentException('ratio = ' . print_r($ratio, true));
        }

        return $this->execute(ucfirst(__FUNCTION__), array($ratio), $multicall);
    }
980040
public function current()
    {
        if (is_callable($this->currentCallback)) {
            $return = call_user_func($this->currentCallback, parent::current());
            return $return;
        } else {
            return parent::current();
        }
    }
701156
private function checkCallable()
    {
        if (is_null($this->callable) || !is_callable($this->callable)) {
            $this->callable = function ($data) {
                $name = $this->name;

                if (is_array($data) && array_key_exists($name, $data)) {
                    return $data[$name];
                }

                if (is_object($data) && property_exists($data, $name)) {
                    return $data->$name;
                }

                if (is_object($data) && method_exists($data, $name)) {
                    return $data->$name();
                }

                return "";
            };
        }
    }
996185
function getManialinkPageAnswers($multicall = false)
    {
        if ($multicall) {
            return $this->execute(ucfirst(__FUNCTION__), array(), $this->structHandler('PlayerAnswer', true));
        }
        return Structures\PlayerAnswer::fromArrayOfArray($this->execute(ucfirst(__FUNCTION__)));
    }
724893
public function getStatusesLookup(array $parameters = array(), $multipart = false, $appOnlyAuth = false)
    {
        return $this->get('statuses/lookup', $parameters, $multipart, $appOnlyAuth);
    }
1178011
public function getState()
    {
        if (empty($this->sortedQueue)) {
            return;
        }
        $current = current($this->sortedQueue)
                 ? current($this->sortedQueue)
                 : end($this->sortedQueue);

        return $current->getState();
    }
1087395
function setMaxPointsTeam($max, $multicall = false)
    {
        if (!is_int($max)) {
            throw new InvalidArgumentException('max = ' . print_r($max, true));
        }

        return $this->execute(ucfirst(__FUNCTION__), array($max), $multicall);
    }
556073
function getBillState($billId, $multicall = false)
    {
        if (!is_int($billId)) {
            throw new InvalidArgumentException('billId = ' . print_r($billId, true));
        }

        if ($multicall) {
            return $this->execute(ucfirst(__FUNCTION__), array($billId), $this->structHandler('Bill'));
        }
        return Structures\Bill::fromArray($this->execute(ucfirst(__FUNCTION__), array($billId)));
    }
747093
function getServerTags($multicall = false)
    {
        if ($multicall) {
            return $this->execute(ucfirst(__FUNCTION__), array(), $this->structHandler('Tag', true));
        }
        return Structures\Tag::fromArrayOfArray($this->execute(ucfirst(__FUNCTION__)));
    }
750861
function getValidationReplay($player, $multicall = false)
    {
        $login = $this->getLogin($player);
        if ($login === false) {
            throw new InvalidArgumentException('player = ' . print_r($player, true));
        }

        if ($multicall) {
            return $this->execute(ucfirst(__FUNCTION__), array($login), function ($v) {
                return $v->scalar;
            });
        }
        return $this->execute(ucfirst(__FUNCTION__), array($login))->scalar;
    }
465438
public function current()
    {
        if (array_key_exists($this->position, $this->results)) {
            return $this->results[$this->position];
        }
    }