| Conditions | 1 |
| Paths | 1 |
| Total Lines | 11 |
| Code Lines | 8 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 1 | Features | 0 |
| 1 | <?php |
||
| 29 | public function buildAddresss(CustomerInterface $customer): ObolAddress |
||
| 30 | { |
||
| 31 | $address = new ObolAddress(); |
||
| 32 | $address->setStreetLineOne($customer->getBillingAddress()->getStreetLineOne()); |
||
| 33 | $address->setStreetLineTwo($customer->getBillingAddress()->getStreetLineTwo()); |
||
| 34 | $address->setCity($customer->getBillingAddress()->getCity()); |
||
| 35 | $address->setState($customer->getBillingAddress()->getRegion()); |
||
| 36 | $address->setCountryCode($customer->getBillingAddress()->getCountry()); |
||
| 37 | $address->setPostalCode($customer->getBillingAddress()->getPostcode()); |
||
| 38 | |||
| 39 | return $address; |
||
| 40 | } |
||
| 42 |