Catalog.php 546 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 Catalog implements \Magento\Framework\Option\ArrayInterface
  8. {
  9. /**
  10. * @return array
  11. */
  12. public function toOptionArray()
  13. {
  14. return [
  15. ['value' => 0, 'label' => __('No (price without tax)')],
  16. ['value' => 1, 'label' => __('Yes (only price with tax)')],
  17. ['value' => 2, 'label' => __("Both (without and with tax)")]
  18. ];
  19. }
  20. }