RiskData.php 625 B

123456789101112131415161718192021222324252627282930
  1. <?php
  2. namespace Braintree;
  3. class RiskData extends Base
  4. {
  5. public static function factory($attributes)
  6. {
  7. $instance = new self();
  8. $instance->_initialize($attributes);
  9. return $instance;
  10. }
  11. protected function _initialize($attributes)
  12. {
  13. $this->_attributes = $attributes;
  14. }
  15. /**
  16. * returns a string representation of the risk data
  17. * @return string
  18. */
  19. public function __toString()
  20. {
  21. return __CLASS__ . '[' .
  22. Util::attributesToString($this->_attributes) .']';
  23. }
  24. }
  25. class_alias('Braintree\RiskData', 'Braintree_RiskData');