attributes['results'][$offset]; try { return ChargeIO_Transaction::parse($transAttrs, $this->connection); } catch(Exception $ex) { throw new ChargeIO_Error('Unexpected transaction type ' . $transAttrs['type'] . ' at offset ' . $offset); } } }