RotationAction.php 795 B

1234567891011121314151617181920212223242526272829303132333435
  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. * Represents a type of log rotation in use
  10. */
  11. class RotationAction implements OptionSourceInterface
  12. {
  13. const TYPE_DELETE = 'delete';
  14. const TYPE_EXPORT = 'export';
  15. /**
  16. * @inheritdoc
  17. */
  18. public function toOptionArray()
  19. {
  20. return [
  21. [
  22. 'label' => __('Export to file and delete'),
  23. 'value' => static::TYPE_EXPORT
  24. ],
  25. [
  26. 'label' => __('Delete'),
  27. 'value' => static::TYPE_DELETE
  28. ]
  29. ];
  30. }
  31. }