* @copyright Since 2007 PrestaShop SA and Contributors * @license https://opensource.org/licenses/OSL-3.0 Open Software License (OSL 3.0) */ namespace PrestaShop\PrestaShop\Core\Domain\Address\Query; use PrestaShop\PrestaShop\Core\Domain\Address\Exception\AddressConstraintException; use PrestaShop\PrestaShop\Core\Domain\Address\ValueObject\AddressId; /** * Gets customer address for editing */ class GetCustomerAddressForEditing { /** * @var AddressId */ private $addressId; /** * @param int $addressId * * @throws AddressConstraintException */ public function __construct($addressId) { $this->addressId = new AddressId($addressId); } /** * @return AddressId */ public function getAddressId() { return $this->addressId; } }