src/Services/Mapper/AddressMapper.php
public function getAddress(array $addressData) : Address
    {
        if (gettype($addressData[ self::FIELD_ID ]) === 'string') {
            $addressData[ self::FIELD_ID ] = Uuid::fromString($addressData[ self::FIELD_ID ]);
        }

        $street = $this->getStreet($addressData);
        $postalCode = $this->getPostalCode($addressData);
        $country = $this->getCountry($addressData);

        return new Address(
            $addressData[ self::FIELD_ID ],
            $street,
            $postalCode,
            $country,
            $addressData[ self::FIELD_PHONE_NUMBER ]
        );
    }
public function getAddress(array $addressData) : Address
    {
        if (gettype($addressData[ self::FIELD_ID ]) === 'string') {
            $addressData[ self::FIELD_ID ] = Uuid::fromString($addressData[ self::FIELD_ID ]);
        }

        $street = $this->getStreet($addressData);
        $postalCode = $this->getPostalCode($addressData);
        $country = $this->getCountry($addressData);

        return new Address(
            $addressData[ self::FIELD_ID ],
            $street,
            $postalCode,
            $country,
            $addressData[ self::FIELD_PHONE_NUMBER ]
        );
    }
@param array $addressData

@return Address