| Conditions | 1 |
| Paths | 1 |
| Total Lines | 13 |
| Code Lines | 9 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 20 | public function create(CustomerInterface $customer): CustomerView |
||
| 21 | { |
||
| 22 | /** @var CustomerView $customerView */ |
||
| 23 | $customerView = new $this->customerViewClass(); |
||
| 24 | $customerView->id = $customer->getId(); |
||
| 25 | $customerView->firstName = $customer->getFirstName(); |
||
| 26 | $customerView->lastName = $customer->getLastName(); |
||
| 27 | $customerView->email = $customer->getEmail(); |
||
| 28 | $customerView->birthday = $customer->getBirthday(); |
||
| 29 | $customerView->gender = $customer->getGender(); |
||
| 30 | $customerView->phoneNumber = $customer->getPhoneNumber(); |
||
| 31 | |||
| 32 | return $customerView; |
||
| 33 | } |
||
| 35 |