| Conditions | 1 |
| Paths | 1 |
| Total Lines | 16 |
| Code Lines | 11 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 23 | public function create(CustomerInterface $customer): CustomerView |
||
| 24 | { |
||
| 25 | /** @var CustomerView $customerView */ |
||
| 26 | $customerView = new $this->customerViewClass(); |
||
| 27 | |||
| 28 | $customerView->id = $customer->getId(); |
||
| 29 | $customerView->firstName = $customer->getFirstName(); |
||
| 30 | $customerView->lastName = $customer->getLastName(); |
||
| 31 | $customerView->email = $customer->getEmail(); |
||
| 32 | $customerView->birthday = $customer->getBirthday(); |
||
| 33 | $customerView->gender = $customer->getGender(); |
||
| 34 | $customerView->phoneNumber = $customer->getPhoneNumber(); |
||
| 35 | $customerView->subscribedToNewsletter = $customer->isSubscribedToNewsletter(); |
||
| 36 | |||
| 37 | return $customerView; |
||
| 38 | } |
||
| 39 | } |
||
| 40 |