Skip to content

Commit

Permalink
Cleanup not used methods
Browse files Browse the repository at this point in the history
Signed-off-by: Anton Fedurtsya <[email protected]>
  • Loading branch information
Sieg committed Dec 18, 2023
1 parent e22be39 commit b104163
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 22 deletions.
7 changes: 0 additions & 7 deletions src/ChangeFilter/CategoryChangeFilter.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,17 +9,10 @@

namespace FreshAdvance\Sitemap\ChangeFilter;

use OxidEsales\Eshop\Application\Model\Category;

class CategoryChangeFilter extends ChangeFilterTemplate implements ChangeFilterInterface
{
public function getUpdatedUrls(int $limit): iterable
{
return $this->queryAndFetchObjectUrl($this->getQuery('oxcategories', $limit), $this->getQueryParameters());
}

protected function getModelClass(): string
{
return Category::class;
}
}
7 changes: 0 additions & 7 deletions src/ChangeFilter/ContentChangeFilter.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,20 +9,13 @@

namespace FreshAdvance\Sitemap\ChangeFilter;

use OxidEsales\Eshop\Application\Model\Content;

class ContentChangeFilter extends ChangeFilterTemplate implements ChangeFilterInterface
{
public function getUpdatedUrls(int $limit): iterable
{
return $this->queryAndFetchObjectUrl($this->getQuery('oxcontents', $limit), $this->getQueryParameters());
}

protected function getModelClass(): string
{
return Content::class;
}

protected function getQueryParameters(): array
{
$queryParemeters = parent::getQueryParameters();
Expand Down
8 changes: 0 additions & 8 deletions src/ChangeFilter/ProductChangeFilter.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,16 +9,8 @@

namespace FreshAdvance\Sitemap\ChangeFilter;

use Doctrine\DBAL\ForwardCompatibility\Result;
use OxidEsales\Eshop\Application\Model\Article;

class ProductChangeFilter extends ChangeFilterTemplate implements ChangeFilterInterface
{
protected function getModelClass(): string
{
return Article::class;
}

public function getUpdatedUrls(int $limit): iterable
{
return $this->queryAndFetchObjectUrl($this->getQuery('oxarticles', $limit), $this->getQueryParameters());
Expand Down

0 comments on commit b104163

Please sign in to comment.