/** * @return String a string that represents the current object */ public function toString() { $transaction = array(); $transaction['code'] = $this->code; $transaction['email'] = $this->sender ? $this->sender->getEmail() : "null"; $transaction['date'] = $this->date; $transaction['reference'] = $this->reference; $transaction['status'] = $this->status ? $this->status->getValue() : "null"; $transaction['itemsCount'] = is_array($this->items) ? count($this->items) : "null"; $transaction = "Transaction: " . var_export($transaction, true); return $transaction; }
/** * Gets the status string description for $statusPagSeguro * @param int $statusPagSeguro * @return string */ private function _getStatusString($statusPagSeguro) { $transactionStatus = new PagSeguroTransactionStatus($statusPagSeguro); return $transactionStatus->getTypeFromValue(); }