/** * Returns the current state of a bill. * @param int $billId * @param bool $multicall * @return Structures\Bill * @throws InvalidArgumentException */ 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))); }
/** * Returns the current state of a bill. * This method takes one parameter, the BillId. * Returns a struct containing * State, StateName and TransactionId. * Possible enum values are: CreatingTransaction, Issued, ValidatingPayement, Payed, Refused, Error. * @param int $billId * @return Structures\Bill * @throws InvalidArgumentException */ function getBillState($billId) { if (!is_int($billId)) { throw new InvalidArgumentException('billId = ' . print_r($billId, true)); } $result = $this->execute(ucfirst(__FUNCTION__), array($billId)); return Structures\Bill::fromArray($result); }