protected function Braintree_Modification::_initialize in Commerce Braintree 7
File
- braintree_php/
lib/ Braintree/ Modification.php, line 4
Class
Code
protected function _initialize($attributes) {
$this->_attributes = $attributes;
$addOnArray = array();
if (isset($attributes['addOns'])) {
foreach ($attributes['addOns'] as $addOn) {
$addOnArray[] = Braintree_addOn::factory($addOn);
}
}
$this->_attributes['addOns'] = $addOnArray;
}