src/Services/Mapper/AddressMapper.php
public function getData(Address $address) : array
    {
        $addressData = array();
        $addressData[ self::FIELD_ID ] = $address->getId()->toString();
        $addressData[ self::FIELD_STREET_NAME ] = $address->getStreet()->getName();
        $addressData[ self::FIELD_STREET_NUMBER ] = $address->getStreet()->getNumber();
        $addressData[ self::FIELD_STREET_ADDITIONAL ] = $address->getStreet()->getAdditional();
        $addressData[ self::FIELD_POSTAL_CODE ] = $address->getPostalCode()->getPostalCode();
        $addressData[ self::FIELD_COUNTRY_CODE ] = $address->getCountry()->getKey();
        $addressData[ self::FIELD_PHONE_NUMBER ] = $address->getPhoneNumber();

        return $addressData;
    }
public function getData(Address $address) : array
    {
        $addressData = array();
        $addressData[ self::FIELD_ID ] = $address->getId()->toString();
        $addressData[ self::FIELD_STREET_NAME ] = $address->getStreet()->getName();
        $addressData[ self::FIELD_STREET_NUMBER ] = $address->getStreet()->getNumber();
        $addressData[ self::FIELD_STREET_ADDITIONAL ] = $address->getStreet()->getAdditional();
        $addressData[ self::FIELD_POSTAL_CODE ] = $address->getPostalCode()->getPostalCode();
        $addressData[ self::FIELD_COUNTRY_CODE ] = $address->getCountry()->getKey();
        $addressData[ self::FIELD_PHONE_NUMBER ] = $address->getPhoneNumber();

        return $addressData;
    }
@param Address $address

@return array