You are here

private function Braintree_Result_CreditCardVerification::_initializeFromArray in Commerce Braintree 7

initializes instance properties from the keys/values of an array @ignore @access protected

Parameters

<type> $aAttribs array of properties to set - single level:

Return value

none

1 call to Braintree_Result_CreditCardVerification::_initializeFromArray()
Braintree_Result_CreditCardVerification::__construct in braintree_php/lib/Braintree/Result/CreditCardVerification.php
@ignore

File

braintree_php/lib/Braintree/Result/CreditCardVerification.php, line 58

Class

Braintree_Result_CreditCardVerification
Braintree Credit Card Verification Result

Code

private function _initializeFromArray($attributes) {
  $this->_attributes = $attributes;
  foreach ($attributes as $name => $value) {
    $varName = "_{$name}";
    $this->{$varName} = $value;

    // $this->$varName = Braintree_Util::delimiterToCamelCase($value, '_');
  }
}