Skip to content
Snippets Groups Projects
Commit 4af04b1c authored by Luke Rodgers's avatar Luke Rodgers
Browse files

Add ChangelogCounterInterface

parent 62e67e1a
Branches
No related merge requests found
...@@ -8,7 +8,7 @@ namespace Magento\Framework\Mview\View; ...@@ -8,7 +8,7 @@ namespace Magento\Framework\Mview\View;
use Magento\Framework\App\ResourceConnection; use Magento\Framework\App\ResourceConnection;
use Magento\Framework\Phrase; use Magento\Framework\Phrase;
class Changelog implements ChangelogInterface class Changelog implements ChangelogInterface, ChangelogCounterInterface
{ {
/** /**
* Suffix for changelog table * Suffix for changelog table
...@@ -132,7 +132,7 @@ class Changelog implements ChangelogInterface ...@@ -132,7 +132,7 @@ class Changelog implements ChangelogInterface
* @return \Magento\Framework\DB\Select * @return \Magento\Framework\DB\Select
* @throws ChangelogTableNotExistsException * @throws ChangelogTableNotExistsException
*/ */
protected function getListSelect($fromVersionId, $toVersionId) private function getListSelect($fromVersionId, $toVersionId)
{ {
$changelogTableName = $this->resource->getTableName($this->getName()); $changelogTableName = $this->resource->getTableName($this->getName());
if (!$this->connection->isTableExists($changelogTableName)) { if (!$this->connection->isTableExists($changelogTableName)) {
......
<?php
/**
* Copyright © Magento, Inc. All rights reserved.
* See COPYING.txt for license details.
*/
namespace Magento\Framework\Mview\View;
/**
* Interface \Magento\Framework\Mview\View\ChangelogCounterInterface
*
*/
interface ChangelogCounterInterface
{
/**
* Retrieve the count of entity ids in the range [$fromVersionId..$toVersionId]
*
* @param $fromVersionId
* @param $toVersionId
* @return mixed
*/
public function getListSize($fromVersionId, $toVersionId);
}
...@@ -42,15 +42,6 @@ interface ChangelogInterface ...@@ -42,15 +42,6 @@ interface ChangelogInterface
*/ */
public function getList($fromVersionId, $toVersionId); public function getList($fromVersionId, $toVersionId);
/**
* Retrieve the count of entity ids in the range [$fromVersionId..$toVersionId]
*
* @param $fromVersionId
* @param $toVersionId
* @return mixed
*/
public function getListSize($fromVersionId, $toVersionId);
/** /**
* Get maximum version_id from changelog * Get maximum version_id from changelog
* *
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment