@@ -1054,7 +1054,7 @@ discard block |
||
1054 | 1054 | * @param string $mainLanguageCode |
1055 | 1055 | * @param \eZ\Publish\API\Repository\Values\Content\Field[] $structFields |
1056 | 1056 | * @param \eZ\Publish\API\Repository\Values\ContentType\FieldDefinition[] $fieldDefinitions |
1057 | - * @param array $languageCodes |
|
1057 | + * @param string[] $languageCodes |
|
1058 | 1058 | * |
1059 | 1059 | * @return array |
1060 | 1060 | */ |
@@ -1128,10 +1128,9 @@ discard block |
||
1128 | 1128 | * @param \eZ\Publish\SPI\Persistence\Content\Field[] $spiFields |
1129 | 1129 | * @param \eZ\Publish\API\Repository\Values\ContentType\FieldDefinition[] $fieldDefinitions |
1130 | 1130 | * @param \eZ\Publish\API\Repository\Values\Content\LocationCreateStruct[] $locationCreateStructs |
1131 | - * @param \eZ\Publish\SPI\Persistence\Content\ObjectState\Group[] $objectStateGroups |
|
1132 | 1131 | * @param bool $execute |
1133 | 1132 | * |
1134 | - * @return mixed |
|
1133 | + * @return ContentCreateStruct |
|
1135 | 1134 | */ |
1136 | 1135 | protected function assertForTestCreateContentNonRedundantFieldSet( |
1137 | 1136 | $mainLanguageCode, |
@@ -2008,7 +2007,7 @@ discard block |
||
2008 | 2007 | * @param \eZ\Publish\API\Repository\Values\Content\Field[] $structFields |
2009 | 2008 | * @param \eZ\Publish\API\Repository\Values\ContentType\FieldDefinition[] $fieldDefinitions |
2010 | 2009 | * |
2011 | - * @return mixed |
|
2010 | + * @return ContentCreateStruct |
|
2012 | 2011 | */ |
2013 | 2012 | protected function assertForTestCreateContentThrowsContentValidationExceptionRequiredField( |
2014 | 2013 | $mainLanguageCode, |
@@ -4795,6 +4794,10 @@ discard block |
||
4795 | 4794 | ); |
4796 | 4795 | } |
4797 | 4796 | |
4797 | + /** |
|
4798 | + * @param Field[] $existingFields |
|
4799 | + * @param FieldDefinition[] $fieldDefinitions |
|
4800 | + */ |
|
4798 | 4801 | public function assertForTestUpdateContentThrowsContentValidationExceptionRequiredField( |
4799 | 4802 | $initialLanguageCode, |
4800 | 4803 | $structFields, |
@@ -4993,6 +4996,10 @@ discard block |
||
4993 | 4996 | } |
4994 | 4997 | } |
4995 | 4998 | |
4999 | + /** |
|
5000 | + * @param Field[] $existingFields |
|
5001 | + * @param FieldDefinition[] $fieldDefinitions |
|
5002 | + */ |
|
4996 | 5003 | public function assertForTestUpdateContentThrowsContentFieldValidationException( |
4997 | 5004 | $initialLanguageCode, |
4998 | 5005 | $structFields, |
@@ -136,7 +136,7 @@ discard block |
||
136 | 136 | } |
137 | 137 | |
138 | 138 | /** |
139 | - * @return \eZ\Publish\SPI\Persistence\Content\Language\Handler|\PHPUnit_Framework_MockObject_MockObject |
|
139 | + * @return \PHPUnit_Framework_MockObject_MockObject |
|
140 | 140 | */ |
141 | 141 | protected function getLanguageHandlerMock() |
142 | 142 | { |
@@ -144,7 +144,7 @@ discard block |
||
144 | 144 | } |
145 | 145 | |
146 | 146 | /** |
147 | - * @return \eZ\Publish\SPI\Persistence\Content\Type\Handler|\PHPUnit_Framework_MockObject_MockObject |
|
147 | + * @return \PHPUnit_Framework_MockObject_MockObject |
|
148 | 148 | */ |
149 | 149 | protected function getTypeHandlerMock() |
150 | 150 | { |
@@ -153,7 +153,7 @@ discard block |
||
153 | 153 | } |
154 | 154 | |
155 | 155 | /** |
156 | - * @return \eZ\Publish\API\Repository\Values\Content\Field[] |
|
156 | + * @return Field[] |
|
157 | 157 | */ |
158 | 158 | protected function getFields() |
159 | 159 | { |
@@ -204,7 +204,7 @@ discard block |
||
204 | 204 | } |
205 | 205 | |
206 | 206 | /** |
207 | - * @return \eZ\Publish\Core\Repository\Values\ContentType\FieldDefinition[] |
|
207 | + * @return FieldDefinition[] |
|
208 | 208 | */ |
209 | 209 | protected function getFieldDefinitions() |
210 | 210 | { |
@@ -504,6 +504,11 @@ |
||
504 | 504 | ); |
505 | 505 | } |
506 | 506 | |
507 | + /** |
|
508 | + * @param integer $id |
|
509 | + * @param null|integer $fieldDefinitionId |
|
510 | + * @param integer $contentId |
|
511 | + */ |
|
507 | 512 | protected function getStubbedRelation($id, $type, $fieldDefinitionId, $contentId) |
508 | 513 | { |
509 | 514 | return new \eZ\Publish\Core\Repository\Values\Content\Relation( |
@@ -628,7 +628,7 @@ |
||
628 | 628 | * Returns Role stub. |
629 | 629 | * |
630 | 630 | * @param array $policiesData |
631 | - * @param mixed $roleId |
|
631 | + * @param integer $roleId |
|
632 | 632 | * |
633 | 633 | * @return \eZ\Publish\SPI\Persistence\User\Role |
634 | 634 | */ |
@@ -110,7 +110,7 @@ |
||
110 | 110 | * |
111 | 111 | * @param \eZ\Publish\API\Repository\Values\Content\Location $location |
112 | 112 | * |
113 | - * @return null|\eZ\Publish\API\Repository\Values\Content\TrashItem null if location was deleted, otherwise TrashItem |
|
113 | + * @return TrashItem|null null if location was deleted, otherwise TrashItem |
|
114 | 114 | */ |
115 | 115 | public function trash(Location $location) |
116 | 116 | { |
@@ -295,7 +295,7 @@ |
||
295 | 295 | * @param bool $showAllTranslations |
296 | 296 | * @param string[] $prioritizedLanguageList |
297 | 297 | * |
298 | - * @return string|bool |
|
298 | + * @return false|string |
|
299 | 299 | */ |
300 | 300 | protected function extractPath( |
301 | 301 | SPIURLAlias $spiUrlAlias, |
@@ -502,7 +502,7 @@ |
||
502 | 502 | * |
503 | 503 | * @param mixed $userId |
504 | 504 | * |
505 | - * @return \eZ\Publish\API\Repository\Values\User\User |
|
505 | + * @return \eZ\Publish\API\Repository\Values\ValueObject |
|
506 | 506 | * |
507 | 507 | * @throws \eZ\Publish\API\Repository\Exceptions\NotFoundException if a user with the given id was not found |
508 | 508 | */ |
@@ -154,7 +154,7 @@ discard block |
||
154 | 154 | * Returns the fallback default value of field type when no such default |
155 | 155 | * value is provided in the field definition in content types. |
156 | 156 | * |
157 | - * @return mixed |
|
157 | + * @return Value |
|
158 | 158 | */ |
159 | 159 | public function getEmptyValue() |
160 | 160 | { |
@@ -184,7 +184,7 @@ discard block |
||
184 | 184 | * |
185 | 185 | * @param mixed $hash |
186 | 186 | * |
187 | - * @return mixed |
|
187 | + * @return Value |
|
188 | 188 | */ |
189 | 189 | public function fromHash($hash) |
190 | 190 | { |