Recurring.php 847 B

123456789101112131415161718192021222324252627282930313233343536373839
  1. <?php
  2. /**
  3. * Copyright © Magento, Inc. All rights reserved.
  4. * See COPYING.txt for license details.
  5. */
  6. declare(strict_types=1);
  7. namespace Magento\SalesSequence\Setup;
  8. use Magento\Framework\Setup\InstallSchemaInterface;
  9. use Magento\Framework\Setup\ModuleContextInterface;
  10. use Magento\Framework\Setup\SchemaSetupInterface;
  11. /**
  12. */
  13. class Recurring implements InstallSchemaInterface
  14. {
  15. /**
  16. * @var SequenceCreator
  17. */
  18. private $sequenceCreator;
  19. /**
  20. * @param SequenceCreator $sequenceCreator
  21. */
  22. public function __construct(
  23. SequenceCreator $sequenceCreator
  24. ) {
  25. $this->sequenceCreator = $sequenceCreator;
  26. }
  27. /**
  28. * {@inheritdoc}
  29. */
  30. public function install(SchemaSetupInterface $setup, ModuleContextInterface $context)
  31. {
  32. $this->sequenceCreator->create();
  33. }
  34. }