Skip to content

Commit

Permalink
aftre huddle review - BaseIsContainer
Browse files Browse the repository at this point in the history
  • Loading branch information
tischsoic committed Apr 19, 2024
1 parent b7ee404 commit 040573d
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 19 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,18 @@
* @copyright Copyright (C) Ibexa AS. All rights reserved.
* @license For full copyright and license information view LICENSE file distributed with this source code.
*/
declare(strict_types=1);

namespace Ibexa\Solr\Query\Common\CriterionVisitor;

use Ibexa\Contracts\Core\Repository\Values\Content\Query\Criterion;
use Ibexa\Contracts\Core\Repository\Values\Content\Query\Criterion\Operator;
use Ibexa\Contracts\Solr\Query\CriterionVisitor;

abstract class CommonIsContainer extends CommonCriterionVisitor
abstract class BaseIsContainer extends CriterionVisitor
{
abstract protected function getTargetField(): string;

public function canVisit(Criterion $criterion): bool
{
return $criterion instanceof Criterion\IsContainer && $criterion->operator === Operator::EQ;
Expand Down
14 changes: 0 additions & 14 deletions src/lib/Query/Common/CriterionVisitor/CommonCriterionVisitor.php

This file was deleted.

4 changes: 2 additions & 2 deletions src/lib/Query/Content/CriterionVisitor/IsContainer.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@
*/
namespace Ibexa\Solr\Query\Content\CriterionVisitor;

use Ibexa\Solr\Query\Common\CriterionVisitor\CommonIsContainer;
use Ibexa\Solr\Query\Common\CriterionVisitor\BaseIsContainer;

final class IsContainer extends CommonIsContainer
final class IsContainer extends BaseIsContainer
{
public function getTargetField(): string
{
Expand Down
4 changes: 2 additions & 2 deletions src/lib/Query/Location/CriterionVisitor/IsContainer.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@
*/
namespace Ibexa\Solr\Query\Location\CriterionVisitor;

use Ibexa\Solr\Query\Common\CriterionVisitor\CommonIsContainer;
use Ibexa\Solr\Query\Common\CriterionVisitor\BaseIsContainer;

final class IsContainer extends CommonIsContainer
final class IsContainer extends BaseIsContainer
{
public function getTargetField(): string
{
Expand Down

0 comments on commit 040573d

Please sign in to comment.