ShippingAddressChooserInterface.php 542 B

12345678910111213141516171819202122232425
  1. <?php
  2. /**
  3. * Copyright © Magento, Inc. All rights reserved.
  4. * See COPYING.txt for license details.
  5. */
  6. namespace Magento\InstantPurchase\Model\ShippingAddressChoose;
  7. use Magento\Customer\Model\Customer;
  8. use Magento\Customer\Model\Address;
  9. /**
  10. * Interface to choose shipping address for a customer if available.
  11. *
  12. * @api
  13. * @since 100.2.0
  14. */
  15. interface ShippingAddressChooserInterface
  16. {
  17. /**
  18. * @param Customer $customer
  19. * @return Address|null
  20. * @since 100.2.0
  21. */
  22. public function choose(Customer $customer);
  23. }