Magento 2 Documentation  2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
Public Member Functions | Protected Attributes
CustomerManagement Class Reference
Inheritance diagram for CustomerManagement:
OrderCustomerManagementInterface

Public Member Functions

 __construct (\Magento\Framework\DataObject\Copy $objectCopyService, \Magento\Customer\Api\AccountManagementInterface $accountManagement, \Magento\Customer\Api\Data\CustomerInterfaceFactory $customerFactory, \Magento\Customer\Api\Data\AddressInterfaceFactory $addressFactory, \Magento\Customer\Api\Data\RegionInterfaceFactory $regionFactory, \Magento\Sales\Api\OrderRepositoryInterface $orderRepository, QuoteAddressFactory $quoteAddressFactory=null, OrderCustomerExtractor $orderCustomerExtractor=null)
 
- Public Member Functions inherited from OrderCustomerManagementInterface
 create ($orderId)
 

Protected Attributes

 $accountManagement
 
 $customerFactory
 
 $addressFactory
 
 $regionFactory
 
 $orderRepository
 
 $objectCopyService
 

Detailed Description

Class CustomerManagement

@SuppressWarnings(PHPMD.CouplingBetweenObjects)

Definition at line 22 of file CustomerManagement.php.

Constructor & Destructor Documentation

◆ __construct()

__construct ( \Magento\Framework\DataObject\Copy  $objectCopyService,
\Magento\Customer\Api\AccountManagementInterface  $accountManagement,
\Magento\Customer\Api\Data\CustomerInterfaceFactory  $customerFactory,
\Magento\Customer\Api\Data\AddressInterfaceFactory  $addressFactory,
\Magento\Customer\Api\Data\RegionInterfaceFactory  $regionFactory,
\Magento\Sales\Api\OrderRepositoryInterface  $orderRepository,
QuoteAddressFactory  $quoteAddressFactory = null,
OrderCustomerExtractor  $orderCustomerExtractor = null 
)
Parameters
\Magento\Framework\DataObject\Copy$objectCopyService
\Magento\Customer\Api\AccountManagementInterface$accountManagement
\Magento\Customer\Api\Data\CustomerInterfaceFactory$customerFactory
\Magento\Customer\Api\Data\AddressInterfaceFactory$addressFactory
\Magento\Customer\Api\Data\RegionInterfaceFactory$regionFactory
\Magento\Sales\Api\OrderRepositoryInterface$orderRepository
QuoteAddressFactory | null$quoteAddressFactory
OrderCustomerExtractor | null$orderCustomerExtractor

Definition at line 74 of file CustomerManagement.php.

83  {
84  $this->objectCopyService = $objectCopyService;
85  $this->accountManagement = $accountManagement;
86  $this->orderRepository = $orderRepository;
87  $this->customerFactory = $customerFactory;
88  $this->addressFactory = $addressFactory;
89  $this->regionFactory = $regionFactory;
90  $this->quoteAddressFactory = $quoteAddressFactory
91  ?: ObjectManager::getInstance()->get(QuoteAddressFactory::class);
92  $this->customerExtractor = $orderCustomerExtractor
93  ?? ObjectManager::getInstance()->get(OrderCustomerExtractor::class);
94  }

Field Documentation

◆ $accountManagement

$accountManagement
protected

Definition at line 27 of file CustomerManagement.php.

◆ $addressFactory

$addressFactory
protected
Deprecated:
101.0.4

Definition at line 37 of file CustomerManagement.php.

◆ $customerFactory

$customerFactory
protected
Deprecated:
101.0.4

Definition at line 32 of file CustomerManagement.php.

◆ $objectCopyService

$objectCopyService
protected
Deprecated:
101.0.4

Definition at line 52 of file CustomerManagement.php.

◆ $orderRepository

$orderRepository
protected

Definition at line 47 of file CustomerManagement.php.

◆ $regionFactory

$regionFactory
protected
Deprecated:
101.0.4

Definition at line 42 of file CustomerManagement.php.


The documentation for this class was generated from the following file: