* @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\Command; use PrestaShop\PrestaShop\Core\Domain\Address\Exception\AddressConstraintException; use PrestaShop\PrestaShop\Core\Domain\Address\ValueObject\AddressId; /** * Command responsible for holding edits customer address data */ class EditCustomerAddressCommand extends AbstractEditAddressCommand { /** * @var AddressId */ private $addressId; /** * @param int $addressId * * @throws AddressConstraintException */ public function __construct(int $addressId) { $this->addressId = new AddressId($addressId); } /** * @return AddressId */ public function getAddressId(): AddressId { return $this->addressId; } }