/** * Constructor - initializes the response object. * * @param string $xml Raw XML response. * @return AcApi_Response */ public static function initFromXml($xml) { $response = new self(); $response->parseXml($xml); return $response; }