Returns the current state of a bill.
@param int $billId
@param bool $multicall
@return Structures\Bill
@throws InvalidArgumentException
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)));
    }
1108003
function getGuestList($length = -1, $offset = 0, $multicall = false)
    {
        if (!is_int($length)) {
            throw new InvalidArgumentException('length = ' . print_r($length, true));
        }
        if (!is_int($offset)) {
            throw new InvalidArgumentException('offset = ' . print_r($offset, true));
        }

        if ($multicall) {
            return $this->execute(ucfirst(__FUNCTION__), array($length, $offset), $this->structHandler('Player', true));
        }
        return Structures\Player::fromArrayOfArray($this->execute(ucfirst(__FUNCTION__), array($length, $offset)));
    }
374850
public function GetRefundTable($bill_id)
	{
		$provider_id = Config::get('ff-qiwi-gate::user_id');
		$bill = Bill::getBill($bill_id, $provider_id);
		if (!$bill) {
			return 'Нет такого счёта';
		}
		$refunds = Refund::whereBillId($bill_id)->get();
		if (count($refunds) == 0) {
			return 'Возвратов нет';
		}

		return $this->make('refundsTable', array('refunds' => $refunds));
	}
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__)));
    }
1302178
function getSkinsDirectory($multicall = false)
    {
        if ($multicall) {
            return $this->execute(ucfirst(__FUNCTION__), array(), array($this, 'stripBom'));
        }
        return $this->stripBom($this->execute(ucfirst(__FUNCTION__)));
    }
982714
function getTeamInfo($team, $multicall = false)
    {
        if (!is_int($team) || $team < 0 || $team > 2) {
            throw new InvalidArgumentException('team = ' . print_r($team, true));
        }

        if ($multicall) {
            return $this->execute(ucfirst(__FUNCTION__), array($team), $this->structHandler('Team'));
        }
        return Structures\Team::fromArray($this->execute(ucfirst(__FUNCTION__), array($team)));
    }
366470
function sendToServerAfterMatchEnd($link, $multicall = false)
    {
        if (!is_string($link)) {
            throw new InvalidArgumentException('link = ' . print_r($link, true));
        }

        $link = str_replace("maniaplanet://", "", $link);

        return $this->execute(ucfirst(__FUNCTION__), array($link), $multicall);
    }
974973
public function getContext($callSid) {
        return new MemberContext(
            $this->version,
            $this->solution['accountSid'],
            $this->solution['queueSid'],
            $callSid
        );
    }
1148898
public function getPayUrl(array $bill, $successUrl)
    {
        // Preset required fields.
        $bill = array_replace(
            ['payUrl' => null],
            $bill
        );

        $payUrl = parse_url((string) $bill['payUrl']);
        if (true === array_key_exists('query', $payUrl)) {
            parse_str($payUrl['query'], $query);
            $query['successUrl'] = $successUrl;
        } else {
            $query = ['successUrl' => $successUrl];
        }

        $payUrl['query'] = http_build_query($query, '', '&', PHP_QUERY_RFC3986);

        return $this->buildUrl($payUrl);

    }
1237408
def bills(self, member_id, type='introduced'):
        ""
        path = "members/{0}/bills/{1}.json".format(member_id, type)
        return self.fetch(path)
465703
function getMapsDirectory($multicall = false)
    {
        if ($multicall) {
            return $this->execute(ucfirst(__FUNCTION__), array(), array($this, 'stripBom'));
        }
        return $this->stripBom($this->execute(ucfirst(__FUNCTION__)));
    }
1005706
public static function get(
        int $mastercardActionId,
        int $noteTextMasterCardActionId,
        int $monetaryAccountId = null,
        array $customHeaders = []
    ): BunqResponseNoteTextMasterCardAction {
        $apiClient = new ApiClient(static::getApiContext());
        $responseRaw = $apiClient->get(
            vsprintf(
                self::ENDPOINT_URL_READ,
                [
                    static::determineUserId(),
                    static::determineMonetaryAccountId($monetaryAccountId),
                    $mastercardActionId,
                    $noteTextMasterCardActionId,
                ]
            ),
            [],
            $customHeaders
        );

        return BunqResponseNoteTextMasterCardAction::castFromBunqResponse(
            static::fromJson($responseRaw, self::OBJECT_TYPE_GET)
        );
    }
1337958
function getMapInfo($filename, $multicall = false)
    {
        if (!is_string($filename)) {
            throw new InvalidArgumentException('filename = ' . print_r($filename, true));
        }
        $filename = $this->secureUtf8($filename);

        if ($multicall) {
            return $this->execute(ucfirst(__FUNCTION__), array($filename), $this->structHandler('Map'));
        }
        return Structures\Map::fromArray($this->execute(ucfirst(__FUNCTION__), array($filename)));
    }
1109119
function getForcedSkins($multicall = false)
    {
        if ($multicall) {
            return $this->execute(ucfirst(__FUNCTION__), array(), $this->structHandler('ForcedSkin', true));
        }
        return Structures\ForcedSkin::fromArrayOfArray($this->execute(ucfirst(__FUNCTION__)));
    }
1353959
function setServerName($name, $multicall = false)
    {
        if (!is_string($name)) {
            throw new InvalidArgumentException('name = ' . print_r($name, true));
        }

        return $this->execute(ucfirst(__FUNCTION__), array($name), $multicall);
    }
1280218
public static function get(int $cardId, array $customHeaders = []): BunqResponseCard
    {
        $apiClient = new ApiClient(static::getApiContext());
        $responseRaw = $apiClient->get(
            vsprintf(
                self::ENDPOINT_URL_READ,
                [static::determineUserId(), $cardId]
            ),
            [],
            $customHeaders
        );

        return BunqResponseCard::castFromBunqResponse(
            static::fromJson($responseRaw, self::OBJECT_TYPE_GET)
        );
    }
1239310
private function getCallback($callback)
    {
        if (is_callable($callback)) {
            if (is_array($callback)) {
                $callback = function (Vertex $vertex) use ($callback) {
                    return call_user_func($callback, $vertex);
                };
            }
            return $callback;
        }

        static $methods = array(
            self::ORDER_ID => 'getId',
            self::ORDER_GROUP => 'getGroup'
        );

        if (!is_int($callback) || !isset($methods[$callback])) {
            throw new InvalidArgumentException('Invalid callback given');
        }

        $method = $methods[$callback];

        return function (Vertex $vertex) use ($method) {
            return $vertex->$method();
        };
    }