Refactored method in DomainRepo, as one fo their arguments was no longer used

This commit is contained in:
Alejandro Celaya
2021-12-09 12:43:49 +01:00
parent ee43e68a57
commit 9752abff19
7 changed files with 16 additions and 67 deletions

View File

@@ -1,22 +0,0 @@
<?php
declare(strict_types=1);
namespace Shlinkio\Shlink\Core\Domain\Spec;
use Happyr\DoctrineSpecification\Filter\Filter;
use Happyr\DoctrineSpecification\Spec;
use Happyr\DoctrineSpecification\Specification\BaseSpecification;
class IsNotAuthority extends BaseSpecification
{
public function __construct(private string $authority, ?string $context = null)
{
parent::__construct($context);
}
protected function getSpec(): Filter
{
return Spec::not(Spec::eq('authority', $this->authority));
}
}