Magento 2 Documentation  2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
NewOperation.php
Go to the documentation of this file.
1 <?php
6 declare(strict_types=1);
7 
9 
11 
16 {
20  private $customer;
21 
25  private $additionalData;
26 
31  public function __construct(
32  CustomerInterface $customer,
33  array $additionalData
34  ) {
35  $this->customer = $customer;
36  $this->additionalData = $additionalData;
37  }
38 
42  public function getCustomer(): CustomerInterface
43  {
44  return $this->customer;
45  }
46 
50  public function getAdditionalData(): array
51  {
52  return $this->additionalData;
53  }
54 }
$customer
Definition: customers.php:11
__construct(CustomerInterface $customer, array $additionalData)