NewOperation.php 1.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  1. <?php
  2. /**
  3. * Copyright © Magento, Inc. All rights reserved.
  4. * See COPYING.txt for license details.
  5. */
  6. declare(strict_types=1);
  7. namespace Magento\Customer\Model\Delegation\Data;
  8. use Magento\Customer\Api\Data\CustomerInterface;
  9. /**
  10. * Data required for delegated new-account operation.
  11. */
  12. class NewOperation
  13. {
  14. /**
  15. * @var CustomerInterface
  16. */
  17. private $customer;
  18. /**
  19. * @var array
  20. */
  21. private $additionalData;
  22. /**
  23. * @param CustomerInterface $customer
  24. * @param array $additionalData
  25. */
  26. public function __construct(
  27. CustomerInterface $customer,
  28. array $additionalData
  29. ) {
  30. $this->customer = $customer;
  31. $this->additionalData = $additionalData;
  32. }
  33. /**
  34. * @return CustomerInterface
  35. */
  36. public function getCustomer(): CustomerInterface
  37. {
  38. return $this->customer;
  39. }
  40. /**
  41. * @return array
  42. */
  43. public function getAdditionalData(): array
  44. {
  45. return $this->additionalData;
  46. }
  47. }