Skip to content

Commit b9fd353

Browse files
author
janvt
authored
Merge pull request #44 from Bl00D4NGEL/add-generic-support-for-doctrine
Add generic support for doctrine
2 parents ab1545b + e1dee96 commit b9fd353

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

src/Infrastructure/Doctrine/Paginator.php

+4
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,10 @@
99
use GeekCell\Ddd\Contracts\Domain\Paginator as PaginatorInterface;
1010
use Traversable;
1111

12+
/**
13+
* @template T of object
14+
* @implements PaginatorInterface<T>
15+
*/
1216
class Paginator implements PaginatorInterface
1317
{
1418
/**

src/Infrastructure/Doctrine/Repository.php

+4
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,10 @@
1616

1717
use function Symfony\Component\String\u;
1818

19+
/**
20+
* @template T of object
21+
* @implements RepositoryInterface<T>
22+
*/
1923
abstract class Repository implements RepositoryInterface
2024
{
2125
/**

0 commit comments

Comments
 (0)