| @@ -14,9 +14,8 @@ | ||
| 14 | 14 | * |
| 15 | 15 | * @package Packetery |
| 16 | 16 | */ |
| 17 | 17 | class WpdbAdapterFactory { |
| 18 | - | |
| 19 | 18 | /** |
| 20 | 19 | * Creates WpdbAdapter instance |
| 21 | 20 | * |
| 22 | 21 | * @return WpdbAdapter |
| @@ -23,18 +22,18 @@ | ||
| 23 | 22 | */ |
| 24 | 23 | public function create(): WpdbAdapter { |
| 25 | 24 | global $wpdb; |
| 26 | 25 | |
| 27 | - $instance = new WpdbAdapter( $wpdb ); | |
| 28 | - $instance->packetery_carrier = sprintf( '%scarrier', $instance->getPacketeryPrefix() ); | |
| 29 | - $instance->packetery_order = sprintf( '%sorder', $instance->getPacketeryPrefix() ); | |
| 30 | - $instance->packetery_log = sprintf( '%slog', $instance->getPacketeryPrefix() ); | |
| 31 | - $instance->packetery_customs_declaration = sprintf( '%scustoms_declaration', $instance->getPacketeryPrefix() ); | |
| 32 | - $instance->packetery_customs_declaration_item = sprintf( '%scustoms_declaration_item', $instance->getPacketeryPrefix() ); | |
| 33 | - $instance->wc_orders = sprintf( '%swc_orders', $wpdb->prefix ); | |
| 34 | - $instance->posts = $wpdb->posts; | |
| 35 | - $instance->options = $wpdb->options; | |
| 36 | - $instance->postmeta = $wpdb->postmeta; | |
| 26 | + $instance = new WpdbAdapter( $wpdb ); | |
| 27 | + $instance->packeteryCarrier = sprintf( '%scarrier', $instance->getPacketeryPrefix() ); | |
| 28 | + $instance->packeteryOrder = sprintf( '%sorder', $instance->getPacketeryPrefix() ); | |
| 29 | + $instance->packeteryLog = sprintf( '%slog', $instance->getPacketeryPrefix() ); | |
| 30 | + $instance->packeteryCustomsDeclaration = sprintf( '%scustoms_declaration', $instance->getPacketeryPrefix() ); | |
| 31 | + $instance->packeteryCustomsDeclarationItem = sprintf( '%scustoms_declaration_item', $instance->getPacketeryPrefix() ); | |
| 32 | + $instance->wcOrders = sprintf( '%swc_orders', $wpdb->prefix ); | |
| 33 | + $instance->posts = $wpdb->posts; | |
| 34 | + $instance->options = $wpdb->options; | |
| 35 | + $instance->postmeta = $wpdb->postmeta; | |
| 37 | 36 | |
| 38 | 37 | return $instance; |
| 39 | 38 | } |
| 40 | 39 | } |