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

Remove backwards breaking ChangelogCounterInterface

parent 700fe226
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, ChangelogCounterInterface class Changelog implements ChangelogInterface
{ {
/** /**
* Suffix for changelog table * Suffix for changelog table
...@@ -169,22 +169,6 @@ class Changelog implements ChangelogInterface, ChangelogCounterInterface ...@@ -169,22 +169,6 @@ class Changelog implements ChangelogInterface, ChangelogCounterInterface
return $this->connection->fetchCol($select); return $this->connection->fetchCol($select);
} }
/**
* Retrieve the count of entity ids in the range [$fromVersionId..$toVersionId]
*
* @param int $fromVersionId
* @param int $toVersionId
* @return int[]
* @throws ChangelogTableNotExistsException
*/
public function getListSize($fromVersionId, $toVersionId)
{
$countSelect = $this->getListSelect($fromVersionId, $toVersionId);
$countSelect->reset(\Magento\Framework\DB\Select::COLUMNS);
$countSelect->columns(new \Zend_Db_Expr(("COUNT(DISTINCT " . $this->getColumnName() . ")")));
return $this->connection->fetchOne($countSelect);
}
/** /**
* Get maximum version_id from changelog * Get maximum version_id from changelog
* @return int * @return int
......
<?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);
}
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