Total Complexity | 2 |
Total Lines | 23 |
Duplicated Lines | 0 % |
Changes | 0 |
1 | <?php |
||
12 | class ContactRequestBuilder |
||
13 | { |
||
14 | /** |
||
15 | * @param Customer $customer |
||
16 | * @return array |
||
17 | */ |
||
18 | public function buildWithCustomer(Customer $customer): array |
||
19 | { |
||
20 | return [ |
||
21 | 'email' => $customer->getData('email'), |
||
22 | 'firstName' => $customer->getData('firstname'), |
||
23 | 'lastName' => $customer->getData('lastname') |
||
24 | ]; |
||
25 | } |
||
26 | |||
27 | /** |
||
28 | * @param Subscriber $subscriber |
||
29 | * @return array |
||
30 | */ |
||
31 | public function buildWithSubscriber(Subscriber $subscriber): array |
||
35 | ]; |
||
36 | } |
||
38 |