/**
  * @return String a string that represents the current object
  */
 public function toString()
 {
     $email = $this->sender ? $this->sender->getEmail() : "null";
     $request = array();
     $request['Reference'] = $this->reference;
     $request['SenderEmail'] = $email;
     return "PagSeguroPaymentRequest: " . var_export($request, true);
 }
 /**
  * @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;
 }