Model
OrderCustomerExtractor
Magento\Sales\Model\Order\OrderCustomerExtractor
What it does
This class extracts customer data from an order, either retrieving an existing customer from the database or creating a new customer data object from order information.
Developers use this when converting guest orders to customer accounts or when needing to rebuild customer information from historical order data, ensuring addresses are properly deduplicated and marked as default billing/shipping addresses.
Public Methods
- extract()