Skip to content

Commit 12c1c28

Browse files
committed
Renamed SpecificationAware to SpecificationAwareInterface
1 parent d38f53f commit 12c1c28

File tree

4 files changed

+5
-4
lines changed

4 files changed

+5
-4
lines changed

spec/SpecificationRepositorySpec.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111
use Rb\Specification\Doctrine\Exception\LogicException;
1212
use Rb\Specification\Doctrine\Result\ModifierInterface;
1313
use Rb\Specification\Doctrine\SpecificationInterface;
14+
use Rb\Specification\Doctrine\SpecificationRepositoryStub;
1415

1516
class SpecificationRepositorySpec extends ObjectBehavior
1617
{
@@ -22,7 +23,7 @@ class SpecificationRepositorySpec extends ObjectBehavior
2223

2324
public function let(EntityManager $entityManager, ClassMetadata $classMetadata)
2425
{
25-
$this->beAnInstanceOf('Rb\Specification\Doctrine\SpecificationRepositoryStub');
26+
$this->beAnInstanceOf(SpecificationRepositoryStub::class);
2627
$this->beConstructedWith($entityManager, $classMetadata);
2728
}
2829

spec/SpecificationRepositoryStub.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
use Doctrine\ORM\EntityRepository;
66

7-
class SpecificationRepositoryStub extends EntityRepository implements SpecificationAware
7+
class SpecificationRepositoryStub extends EntityRepository implements SpecificationAwareInterface
88
{
99
use SpecificationRepositoryTrait;
1010
}
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
/**
99
* SpecificationAware can be used to implement custom repository.
1010
*/
11-
interface SpecificationAware
11+
interface SpecificationAwareInterface
1212
{
1313
/**
1414
* Get the query after matching with given specification.

src/SpecificationRepositoryTrait.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ trait SpecificationRepositoryTrait
1818
protected $dqlAlias = 'e';
1919

2020
/**
21-
* @see SpecificationAware::match()
21+
* @see SpecificationAwareInterface::match()
2222
*
2323
* @param SpecificationInterface $specification
2424
* @param ModifierInterface|null $modifier

0 commit comments

Comments
 (0)