FlagConfigOption.php 872 B

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. <?php
  2. /**
  3. * Copyright © Magento, Inc. All rights reserved.
  4. * See COPYING.txt for license details.
  5. */
  6. namespace Magento\Framework\Setup\Option;
  7. /**
  8. * Flag option in deployment config tool
  9. */
  10. class FlagConfigOption extends AbstractConfigOption
  11. {
  12. /**
  13. * Frontend input types
  14. */
  15. const FRONTEND_WIZARD_FLAG = 'flag';
  16. /**
  17. * Constructor
  18. *
  19. * @param string $name
  20. * @param string $configPath
  21. * @param string $description
  22. * @param string|array|null $shortCut
  23. */
  24. public function __construct(
  25. $name,
  26. $configPath,
  27. $description = '',
  28. $shortCut = null
  29. ) {
  30. parent::__construct(
  31. $name,
  32. self::FRONTEND_WIZARD_FLAG,
  33. self::VALUE_NONE,
  34. $configPath,
  35. $description,
  36. null,
  37. $shortCut
  38. );
  39. }
  40. }