* @copyright Since 2007 PrestaShop SA and Contributors * @license https://opensource.org/licenses/OSL-3.0 Open Software License (OSL 3.0) */ namespace PrestaShop\PrestaShop\Adapter\Address\QueryHandler; use PrestaShop\PrestaShop\Adapter\Address\AbstractCustomerAddressHandler; use PrestaShop\PrestaShop\Core\Domain\Address\Exception\AddressException; use PrestaShop\PrestaShop\Core\Domain\Address\Query\GetRequiredFieldsForAddress; use PrestaShop\PrestaShop\Core\Domain\Address\QueryHandler\GetRequiredFieldsForAddressHandlerInterface; /** * Handles query which gets required fields for address * * @internal */ final class GetRequiredFieldsForAddressHandler extends AbstractCustomerAddressHandler implements GetRequiredFieldsForAddressHandlerInterface { /** * {@inheritdoc} * * @throws AddressException */ public function handle(GetRequiredFieldsForAddress $query): array { return $this->getRequiredFields(); } }