StateInterface.php 932 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  1. <?php
  2. /**
  3. * Copyright © Magento, Inc. All rights reserved.
  4. * See COPYING.txt for license details.
  5. */
  6. namespace Magento\Framework\Setup\SampleData;
  7. /**
  8. * Interface for SampleData modules installation
  9. */
  10. interface StateInterface
  11. {
  12. /**
  13. * Current state
  14. */
  15. const ERROR = 'error';
  16. const INSTALLED = 'installed';
  17. /**
  18. * Set error flag to Sample Data state
  19. *
  20. * @return void
  21. */
  22. public function setError();
  23. /**
  24. * Check if Sample Data state has error
  25. *
  26. * @return bool
  27. */
  28. public function hasError();
  29. /**
  30. * Set installed flag to Sample Data state
  31. *
  32. * @return void
  33. */
  34. public function setInstalled();
  35. /**
  36. * Check if Sample Data is installed
  37. *
  38. * @return bool
  39. */
  40. public function isInstalled();
  41. /**
  42. * Clear Sample Data state
  43. *
  44. * @return void
  45. */
  46. public function clearState();
  47. }