| Conditions | 2 |
| Paths | 2 |
| Total Lines | 9 |
| Code Lines | 6 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 21 | public function buildWithMagentoCustomer(MagentoCustomerInterface $magentoCustomer): array |
||
| 22 | { |
||
| 23 | $isSubscribed = $magentoCustomer->getExtensionAttributes()->getIsSubscribed(); |
||
| 24 | |||
| 25 | return [ |
||
| 26 | 'status' => $isSubscribed ? Contants::CONTACT_STATUS_ACTIVE : Contants::CONTACT_STATUS_UNSUBSCRIBED, |
||
| 27 | 'email' => $magentoCustomer->getEmail(), |
||
| 28 | 'firstName' => $magentoCustomer->getFirstname(), |
||
| 29 | 'lastName' => $magentoCustomer->getLastname() |
||
| 30 | ]; |
||
| 47 |