SummarizeTax.php 880 B

1234567891011121314151617181920212223242526272829303132333435363738
  1. <?php
  2. /**
  3. * @copyright Vertex. All rights reserved. https://www.vertexinc.com/
  4. * @author Mediotype https://www.mediotype.com/
  5. */
  6. namespace Vertex\Tax\Model\Config\Source;
  7. use Magento\Framework\Data\OptionSourceInterface;
  8. /**
  9. * Contains options for summarize tax
  10. */
  11. class SummarizeTax implements OptionSourceInterface
  12. {
  13. const PRODUCT_AND_SHIPPING = 'product_and_shipping';
  14. const JURISDICTION = 'jurisdiction';
  15. /**
  16. * Available options for SummarizeTax
  17. *
  18. * @return array
  19. */
  20. public function toOptionArray()
  21. {
  22. return [
  23. [
  24. 'label' => __('Product and Shipping'),
  25. 'value' => static::PRODUCT_AND_SHIPPING
  26. ],
  27. [
  28. 'label' => __('Jurisdiction'),
  29. 'value' => static::JURISDICTION
  30. ]
  31. ];
  32. }
  33. }