AccountUpdaterDailyReport.php 1006 B

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. <?php
  2. namespace Braintree;
  3. /**
  4. * Creates an instance of AccountUpdaterDailyReport
  5. *
  6. *
  7. * @package Braintree
  8. *
  9. * @property-read string $reportUrl
  10. * @property-read date $reportDate
  11. */
  12. class AccountUpdaterDailyReport extends Base
  13. {
  14. protected $_attributes = [];
  15. protected function _initialize($disputeAttribs)
  16. {
  17. $this->_attributes = $disputeAttribs;
  18. }
  19. public static function factory($attributes)
  20. {
  21. $instance = new self();
  22. $instance->_initialize($attributes);
  23. return $instance;
  24. }
  25. public function __toString()
  26. {
  27. $display = [
  28. 'reportDate', 'reportUrl'
  29. ];
  30. $displayAttributes = [];
  31. foreach ($display AS $attrib) {
  32. $displayAttributes[$attrib] = $this->$attrib;
  33. }
  34. return __CLASS__ . '[' .
  35. Util::attributesToString($displayAttributes) .']';
  36. }
  37. }
  38. class_alias('Braintree\AccountUpdaterDailyReport', 'Braintree_AccountUpdaterDailyReport');