BraintreeAchMandate

Braintree AchMandate module PHP Version 5.

Defined (1)

The class is defined in the following location(s).

/includes/lib/Braintree/lib/Braintree/AchMandate.php  
  1. class AchMandate extends Base 
  2. /** 
  3. * create a printable representation of the object as: 
  4. * ClassName[property=value, property=value] 
  5. * @ignore 
  6. * @return string 
  7. */ 
  8. public function __toString() 
  9. return __CLASS__ . '[' . 
  10. Util::attributesToString($this->_attributes) . ']'; 
  11.  
  12. /** 
  13. * sets instance properties from an array of values 
  14. * @ignore 
  15. * @access protected 
  16. * @param array $achAttribs array of achMandate data 
  17. * @return void 
  18. */ 
  19. protected function _initialize($achAttribs) 
  20. // set the attributes 
  21. $this->_attributes = $achAttribs; 
  22. $date = new \DateTime($this->acceptedAt); 
  23. $this->_set('acceptedAt', $date); 
  24.  
  25. /** 
  26. * factory method: returns an instance of AchMandate 
  27. * to the requesting method, with populated properties 
  28. * @ignore 
  29. * @return AchMandate 
  30. */ 
  31. public static function factory($attributes) 
  32. $instance = new self(); 
  33. $instance->_initialize($attributes); 
  34. return $instance; 
  35.