protected function extractAddressValues(AddressInterface $address)
    {
        $values = [];
        foreach (AddressField::getAll() as $field) {
            $getter = 'get' . ucfirst($field);
            $values[$field] = $address->$getter();
        }

        return $values;
    }
protected function extractAddressValues(AddressInterface $address)
    {
        $values = [];
        foreach (AddressField::getAll() as $field) {
            $getter = 'get' . ucfirst($field);
            $values[$field] = $address->$getter();
        }

        return $values;
    }
protected function extractAddressValues ( AddressInterface $ address ) { $ values = [ ] ; foreach ( AddressField :: getAll ( ) as $ field ) { $ getter = 'get' . ucfirst ( $ field ) ; $ values [ $ field ] = $ address -> $ getter ( ) ; } return $ values ; }
Extracts the address values.

@param AddressInterface $address The address.

@return array An array of values keyed by field constants.
Extracts the address values .