@@ -75,7 +75,7 @@ discard block |
||
75 | 75 | } |
76 | 76 | |
77 | 77 | /** |
78 | - * @return int |
|
78 | + * @return DateTimeInterface |
|
79 | 79 | */ |
80 | 80 | public function getCreated(): DateTimeInterface |
81 | 81 | { |
@@ -83,7 +83,7 @@ discard block |
||
83 | 83 | } |
84 | 84 | |
85 | 85 | /** |
86 | - * @return int |
|
86 | + * @return DateTimeInterface |
|
87 | 87 | */ |
88 | 88 | public function getModified(): DateTimeInterface |
89 | 89 | { |
@@ -4,9 +4,9 @@ |
||
4 | 4 | |
5 | 5 | namespace Netgen\InformationCollection\API\Value; |
6 | 6 | |
7 | -use eZ\Publish\API\Repository\Values\Content\Content; |
|
8 | -use eZ\Publish\API\Repository\Values\ContentType\ContentType; |
|
9 | 7 | use EzSystems\RepositoryForms\Data\Content\FieldData; |
8 | +use eZ\Publish\API\Repository\Values\ContentType\ContentType; |
|
9 | +use eZ\Publish\API\Repository\Values\Content\Content; |
|
10 | 10 | |
11 | 11 | final class InformationCollectionStruct extends ValueObject |
12 | 12 | { |
@@ -5,8 +5,8 @@ |
||
5 | 5 | namespace Netgen\InformationCollection\Core\Mailer; |
6 | 6 | |
7 | 7 | use Netgen\InformationCollection\API\Exception\EmailNotSentException; |
8 | -use Netgen\InformationCollection\API\Value\DataTransfer\EmailContent; |
|
9 | 8 | use Netgen\InformationCollection\API\MailerInterface; |
9 | +use Netgen\InformationCollection\API\Value\DataTransfer\EmailContent; |
|
10 | 10 | |
11 | 11 | class Mailer implements MailerInterface |
12 | 12 | { |
@@ -108,6 +108,9 @@ |
||
108 | 108 | ); |
109 | 109 | } |
110 | 110 | |
111 | + /** |
|
112 | + * @param integer $userId |
|
113 | + */ |
|
111 | 114 | protected function getUser($userId) |
112 | 115 | { |
113 | 116 | try { |
@@ -6,16 +6,16 @@ |
||
6 | 6 | |
7 | 7 | use DateTimeImmutable; |
8 | 8 | use DateTimeInterface; |
9 | -use eZ\Publish\API\Repository\Exceptions\NotFoundException; |
|
10 | -use eZ\Publish\API\Repository\Repository; |
|
11 | -use eZ\Publish\API\Repository\Values\ContentType\FieldDefinition; |
|
12 | -use eZ\Publish\API\Repository\Values\Content\Content as APIContent; |
|
13 | 9 | use Netgen\InformationCollection\API\Value\Attribute; |
14 | 10 | use Netgen\InformationCollection\API\Value\AttributeValue; |
15 | 11 | use Netgen\InformationCollection\API\Value\Collection; |
16 | 12 | use Netgen\InformationCollection\API\Value\Content; |
17 | 13 | use Netgen\InformationCollection\Doctrine\Entity\EzInfoCollection; |
18 | 14 | use Netgen\InformationCollection\Doctrine\Entity\EzInfoCollectionAttribute; |
15 | +use eZ\Publish\API\Repository\Exceptions\NotFoundException; |
|
16 | +use eZ\Publish\API\Repository\Repository; |
|
17 | +use eZ\Publish\API\Repository\Values\ContentType\FieldDefinition; |
|
18 | +use eZ\Publish\API\Repository\Values\Content\Content as APIContent; |
|
19 | 19 | |
20 | 20 | final class DomainObjectMapper |
21 | 21 | { |
@@ -18,7 +18,6 @@ |
||
18 | 18 | * InformationCollectionCollectionListAdapter constructor. |
19 | 19 | * |
20 | 20 | * @param \Netgen\InformationCollection\API\Service\InformationCollection $informationCollectionService |
21 | - * @param \Netgen\InformationCollection\API\Value\Filter\Query $query |
|
22 | 21 | */ |
23 | 22 | public function __construct(InformationCollection $informationCollectionService) |
24 | 23 | { |
@@ -301,7 +301,6 @@ |
||
301 | 301 | } |
302 | 302 | |
303 | 303 | /** |
304 | - * @param UserReference $userReference |
|
305 | 304 | * |
306 | 305 | * @return \eZ\Publish\API\Repository\Values\User\User |
307 | 306 | */ |
@@ -4,9 +4,6 @@ discard block |
||
4 | 4 | |
5 | 5 | namespace Netgen\InformationCollection\Core\Service; |
6 | 6 | |
7 | -use eZ\Publish\API\Repository\Exceptions\NotFoundException; |
|
8 | -use eZ\Publish\API\Repository\Repository; |
|
9 | -use eZ\Publish\API\Repository\Values\User\UserReference; |
|
10 | 7 | use Netgen\InformationCollection\API\Exception\PersistingFailedException; |
11 | 8 | use Netgen\InformationCollection\API\Exception\StoringAttributeFailedException; |
12 | 9 | use Netgen\InformationCollection\API\Exception\StoringCollectionFailedException; |
@@ -17,20 +14,23 @@ discard block |
||
17 | 14 | use Netgen\InformationCollection\API\Value\ContentsWithCollections; |
18 | 15 | use Netgen\InformationCollection\API\Value\Filter\CollectionFields; |
19 | 16 | use Netgen\InformationCollection\API\Value\Filter\CollectionId; |
17 | +use Netgen\InformationCollection\API\Value\Filter\Collections as FilterCollections; |
|
20 | 18 | use Netgen\InformationCollection\API\Value\Filter\ContentId; |
21 | 19 | use Netgen\InformationCollection\API\Value\Filter\Contents; |
22 | 20 | use Netgen\InformationCollection\API\Value\Filter\Query; |
23 | 21 | use Netgen\InformationCollection\API\Value\Filter\SearchCountQuery; |
24 | 22 | use Netgen\InformationCollection\API\Value\Filter\SearchQuery; |
25 | -use Netgen\InformationCollection\API\Value\Filter\Collections as FilterCollections; |
|
26 | 23 | use Netgen\InformationCollection\API\Value\InformationCollectionStruct; |
27 | 24 | use Netgen\InformationCollection\API\Value\ObjectCount; |
28 | 25 | use Netgen\InformationCollection\API\Value\SearchCount; |
29 | 26 | use Netgen\InformationCollection\Core\Factory\FieldDataFactory; |
30 | 27 | use Netgen\InformationCollection\Core\Mapper\DomainObjectMapper; |
31 | 28 | use Netgen\InformationCollection\Core\Persistence\Gateway\DoctrineDatabase; |
32 | -use Netgen\InformationCollection\Doctrine\Repository\EzInfoCollectionRepository; |
|
33 | 29 | use Netgen\InformationCollection\Doctrine\Repository\EzInfoCollectionAttributeRepository; |
30 | +use Netgen\InformationCollection\Doctrine\Repository\EzInfoCollectionRepository; |
|
31 | +use eZ\Publish\API\Repository\Exceptions\NotFoundException; |
|
32 | +use eZ\Publish\API\Repository\Repository; |
|
33 | +use eZ\Publish\API\Repository\Values\User\UserReference; |
|
34 | 34 | |
35 | 35 | class InformationCollectionService implements InformationCollection |
36 | 36 | { |
@@ -4,13 +4,13 @@ |
||
4 | 4 | |
5 | 5 | namespace Netgen\InformationCollection\Integration\RepositoryForms; |
6 | 6 | |
7 | +use EzSystems\RepositoryForms\Data\Content\FieldData; |
|
8 | +use EzSystems\RepositoryForms\Data\Mapper\FormDataMapperInterface; |
|
7 | 9 | use Netgen\InformationCollection\API\Value\InformationCollectionStruct; |
10 | +use Symfony\Component\OptionsResolver\OptionsResolver; |
|
8 | 11 | use eZ\Publish\API\Repository\Values\ContentType\ContentType; |
9 | 12 | use eZ\Publish\API\Repository\Values\ContentType\FieldDefinition; |
10 | 13 | use eZ\Publish\API\Repository\Values\ValueObject; |
11 | -use EzSystems\RepositoryForms\Data\Content\FieldData; |
|
12 | -use EzSystems\RepositoryForms\Data\Mapper\FormDataMapperInterface; |
|
13 | -use Symfony\Component\OptionsResolver\OptionsResolver; |
|
14 | 14 | |
15 | 15 | class InformationCollectionMapper implements FormDataMapperInterface |
16 | 16 | { |