ChangelogInterface.php 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980
  1. <?php
  2. /**
  3. * Copyright © Magento, Inc. All rights reserved.
  4. * See COPYING.txt for license details.
  5. */
  6. namespace Magento\Framework\Mview\View;
  7. /**
  8. * Interface \Magento\Framework\Mview\View\ChangelogInterface
  9. *
  10. */
  11. interface ChangelogInterface
  12. {
  13. /**
  14. * Create changelog table
  15. *
  16. * @return boolean
  17. */
  18. public function create();
  19. /**
  20. * Drop changelog table
  21. *
  22. * @return boolean
  23. */
  24. public function drop();
  25. /**
  26. * Clear changelog by version_id
  27. *
  28. * @param int $versionId
  29. * @return bool
  30. */
  31. public function clear($versionId);
  32. /**
  33. * Retrieve entity ids by range [$fromVersionId..$toVersionId]
  34. *
  35. * @param integer $fromVersionId
  36. * @param integer $toVersionId
  37. * @return int[]
  38. */
  39. public function getList($fromVersionId, $toVersionId);
  40. /**
  41. * Get maximum version_id from changelog
  42. *
  43. * @return int
  44. */
  45. public function getVersion();
  46. /**
  47. * Get changlog name
  48. *
  49. * @return string
  50. */
  51. public function getName();
  52. /**
  53. * Get changlog entity column name
  54. *
  55. * @return string
  56. */
  57. public function getColumnName();
  58. /**
  59. * Set view's identifier
  60. *
  61. * @param string $viewId
  62. * @return ChangelogInterface
  63. */
  64. public function setViewId($viewId);
  65. /**
  66. * Get view's identifier
  67. *
  68. * @return string
  69. */
  70. public function getViewId();
  71. }