@@ -42,7 +42,7 @@ |
||
42 | 42 | } |
43 | 43 | |
44 | 44 | /** |
45 | - * @param $id |
|
45 | + * @param \Black\Page\Domain\Model\WebPageId $id |
|
46 | 46 | * |
47 | 47 | * @return WebPageDTO |
48 | 48 | */ |
@@ -46,7 +46,7 @@ |
||
46 | 46 | } |
47 | 47 | |
48 | 48 | /** |
49 | - * @return mixed |
|
49 | + * @return \Black\Page\Domain\Model\WebPage |
|
50 | 50 | */ |
51 | 51 | public function getWebPageId() |
52 | 52 | { |
@@ -14,7 +14,7 @@ |
||
14 | 14 | class ReadRepository extends DocumentRepository implements WebPageReadRepository |
15 | 15 | { |
16 | 16 | /** |
17 | - * @param mixed $id |
|
17 | + * @param WebPageId $id |
|
18 | 18 | * @return mixed |
19 | 19 | * @throws \Doctrine\ORM\NoResultException |
20 | 20 | * @throws \Doctrine\ORM\NonUniqueResultException |
@@ -5,7 +5,6 @@ |
||
5 | 5 | use Black\Component\Common\Infrastructure\Persistence\MongoDB\DocumentRepository; |
6 | 6 | use Black\Page\Domain\Model\WebPageId; |
7 | 7 | use Black\Page\Domain\Model\WebPageReadRepository; |
8 | -use Doctrine\Common\Persistence\ObjectManager; |
|
9 | 8 | use Doctrine\ORM\NoResultException; |
10 | 9 | |
11 | 10 | /** |
@@ -14,7 +14,7 @@ |
||
14 | 14 | class ReadRepository extends EntityRepository implements WebPageReadRepository |
15 | 15 | { |
16 | 16 | /** |
17 | - * @param mixed $id |
|
17 | + * @param WebPageId $id |
|
18 | 18 | * @return mixed |
19 | 19 | * @throws \Doctrine\ORM\NoResultException |
20 | 20 | * @throws \Doctrine\ORM\NonUniqueResultException |
@@ -5,7 +5,6 @@ |
||
5 | 5 | use Black\Component\Common\Infrastructure\Persistence\ORM\EntityRepository; |
6 | 6 | use Black\Page\Domain\Model\WebPageId; |
7 | 7 | use Black\Page\Domain\Model\WebPageReadRepository; |
8 | -use Doctrine\Common\Persistence\ObjectManager; |
|
9 | 8 | use Doctrine\ORM\NoResultException; |
10 | 9 | |
11 | 10 | /** |