Basedon.php 542 B

123456789101112131415161718192021
  1. <?php
  2. /**
  3. * Copyright © Magento, Inc. All rights reserved.
  4. * See COPYING.txt for license details.
  5. */
  6. namespace Magento\Tax\Model\Config\Source;
  7. class Basedon implements \Magento\Framework\Option\ArrayInterface
  8. {
  9. /**
  10. * @return array
  11. */
  12. public function toOptionArray()
  13. {
  14. return [
  15. ['value' => 'shipping', 'label' => __('Shipping Address')],
  16. ['value' => 'billing', 'label' => __('Billing Address')],
  17. ['value' => 'origin', 'label' => __("Shipping Origin")]
  18. ];
  19. }
  20. }