StateInterface.php 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273
  1. <?php
  2. /**
  3. * Copyright © Magento, Inc. All rights reserved.
  4. * See COPYING.txt for license details.
  5. */
  6. namespace Magento\Framework\Indexer;
  7. /**
  8. * @api Retrieve status of the Indexer
  9. * @since 100.0.2
  10. */
  11. interface StateInterface
  12. {
  13. /**
  14. * Indexer statuses
  15. */
  16. const STATUS_WORKING = 'working';
  17. const STATUS_VALID = 'valid';
  18. const STATUS_INVALID = 'invalid';
  19. /**
  20. * Return indexer id
  21. *
  22. * @return string
  23. */
  24. public function getIndexerId();
  25. /**
  26. * Set indexer id
  27. *
  28. * @param string $value
  29. * @return $this
  30. */
  31. public function setIndexerId($value);
  32. /**
  33. * Return status
  34. *
  35. * @return string
  36. */
  37. public function getStatus();
  38. /**
  39. * Return updated
  40. *
  41. * @return string
  42. */
  43. public function getUpdated();
  44. /**
  45. * Set updated
  46. *
  47. * @param string $value
  48. * @return $this
  49. */
  50. public function setUpdated($value);
  51. /**
  52. * Fill object with state data by view ID
  53. *
  54. * @param string $indexerId
  55. * @return $this
  56. */
  57. public function loadByIndexer($indexerId);
  58. /**
  59. * Status setter
  60. *
  61. * @param string $status
  62. * @return $this
  63. */
  64. public function setStatus($status);
  65. }