Invoice.php 701 B

12345678910111213141516171819202122232425262728293031
  1. <?php
  2. /**
  3. * Copyright © Magento, Inc. All rights reserved.
  4. * See COPYING.txt for license details.
  5. */
  6. namespace Magento\Payment\Model\Source;
  7. /**
  8. * Automatic invoice create source model
  9. *
  10. * Inheritance of this class allowed as is a part of legacy implementation.
  11. *
  12. * @api
  13. * @since 100.0.2
  14. */
  15. class Invoice implements \Magento\Framework\Option\ArrayInterface
  16. {
  17. /**
  18. * {@inheritdoc}
  19. */
  20. public function toOptionArray()
  21. {
  22. return [
  23. [
  24. 'value' => \Magento\Payment\Model\Method\AbstractMethod::ACTION_AUTHORIZE_CAPTURE,
  25. 'label' => __('Yes'),
  26. ],
  27. ['value' => '', 'label' => __('No')]
  28. ];
  29. }
  30. }