(int) $product->id, 'ref' => $product->ref, 'label' => $product->label, 'description' => $product->description, 'price' => (float) $product->price, 'price_ttc' => (float) $product->price_ttc, 'stock' => (float) $product->stock_reel, 'status' => (int) $product->status, 'created_at' => $product->datec, 'updated_at' => $product->tms ]; } public function importMappedData($data) { // Conversion DTO → Dolibarr pour création/modification return [ 'ref' => $data['ref'] ?? '', 'label' => $data['label'] ?? '', 'description' => $data['description'] ?? '', 'price' => $data['price'] ?? 0 ]; } }