id = $definition['id']; $this->label = $definition['label']; foreach ($definition['territories'] as $territory_definition) { $this->territories[] = new ZoneTerritory($territory_definition); } } public function getId(): string { return $this->id; } public function getLabel(): string { return $this->label; } /** * Gets the territories. * * @return \CommerceGuys\Addressing\Zone\ZoneTerritory[] The territories. */ public function getTerritories(): array { return $this->territories; } /** * Checks whether the provided address belongs to the zone. * * @param \CommerceGuys\Addressing\AddressInterface $address The address. * * @return bool True if the provided address belongs to the zone, false otherwise. */ public function match(AddressInterface $address): bool { foreach ($this->territories as $territory) { if ($territory->match($address)) { return true; } } return false; } } __halt_compiler();----SIGNATURE:----sSL+/HIPRWT8p+cKJCHhgItZXmm7L5fQs8RvRFBSB59xhz+9KePpUQeUMyy4pWicWEgW1ZbG2uNECeBB1bA/qPEBP5Yo3b28na6JrIgZatcft9XbhvhwEFdPmk9SRehO7Tn8skjkiQ7jWwlGEEsPhivGC2FCXagh4GLvLLMK+ucPVP20bbPL8N1r7EMYkUeNwo7Ip3g1bmivnYTyp5Mtoj7CtQHtligCpbJ5iU2gB4DdN+MwwVyNJnaCM8qIAbHwJ50z8KhFizPp0XesKi0dzIABfoUWMUqEJqE7FCvuQiwVdEs80IdoecCLXqIf6v69md5YzOzvNf0j5dQpKStU2OkFeEZBCwEpIxJrGVJwSuB+mrvV7aXGgRfmFbaMia102OmbBEtn2f+v0bNb3PdpfXh61tHDNALmjSOlYl5aqh6mf9AXKjrOaD9TuZ/evLuYTnHhnt8NCKtNDceDenpurAFltnhkRQAceQ+jv5nQxLF0W/MpRFQdhHm0V8RNpMWQmyYm34OG+UmM2XQ4dJFK+WKqTutlMb7pWuBnPMKa4VquJVOpQM8p+TJ13kH65yRR/qPYDuJ+KmRuGcLwTmlsavm6xpzKZBEp7wuumuKEI88qJvNiwjmw4u411rc2UWbUAWuG3G8OSEEj8MGrpdOiTgmJizudktri64i5TilIN5o=----ATTACHMENT:----Mjk0NTY0MTcyMzc4MzU4NyA5ODgxNTY2NDQxMzU4NTkwIDE2NjI5MTA3NDcyMDQzOTU=