Options.php 796 B

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. <?php
  2. /**
  3. * Copyright © Magento, Inc. All rights reserved.
  4. * See COPYING.txt for license details.
  5. */
  6. /**
  7. * Backup types option array
  8. *
  9. * @author Magento Core Team <core@magentocommerce.com>
  10. */
  11. namespace Magento\Backup\Model\Grid;
  12. /**
  13. * @api
  14. * @since 100.0.2
  15. */
  16. class Options implements \Magento\Framework\Option\ArrayInterface
  17. {
  18. /**
  19. * @var \Magento\Backup\Helper\Data
  20. */
  21. protected $_helper;
  22. /**
  23. * @param \Magento\Backup\Helper\Data $backupHelper
  24. */
  25. public function __construct(\Magento\Backup\Helper\Data $backupHelper)
  26. {
  27. $this->_helper = $backupHelper;
  28. }
  29. /**
  30. * Return backup types array
  31. * @return array
  32. */
  33. public function toOptionArray()
  34. {
  35. return $this->_helper->getBackupTypes();
  36. }
  37. }