You are here

final class Braintree_Xml in Commerce Braintree 7

superclass for Braintree XML parsing and generation

@copyright 2010 Braintree Payment Solutions

Hierarchy

Expanded class hierarchy of Braintree_Xml

File

braintree_php/lib/Braintree/Xml.php, line 14

View source
final class Braintree_Xml {

  /**
   * @ignore
   */
  protected function __construct() {
  }

  /**
   *
   * @param string $xml
   * @return array
   */
  public static function buildArrayFromXml($xml) {
    return Braintree_Xml_Parser::arrayFromXml($xml);
  }

  /**
   *
   * @param array $array
   * @return string
   */
  public static function buildXmlFromArray($array) {
    return Braintree_Xml_Generator::arrayToXml($array);
  }

}

Members