@@ -21,7 +21,6 @@ |
||
| 21 | 21 | * Constructor. |
| 22 | 22 | * |
| 23 | 23 | * @param \eZ\Publish\Core\Persistence\TransformationProcessor\PcreCompiler $compiler |
| 24 | - * @param string $installDir Base dir for rule loading |
|
| 25 | 24 | * @param array $ruleFiles |
| 26 | 25 | */ |
| 27 | 26 | public function __construct(PcreCompiler $compiler, array $ruleFiles = array()) |
@@ -230,7 +230,7 @@ discard block |
||
| 230 | 230 | * |
| 231 | 231 | * @param mixed $id |
| 232 | 232 | * |
| 233 | - * @return \eZ\Publish\API\Repository\Values\User\RoleDraft |
|
| 233 | + * @return \eZ\Publish\SPI\Persistence\User\Policy |
|
| 234 | 234 | */ |
| 235 | 235 | public function loadRoleDraft($id) |
| 236 | 236 | { |
@@ -1396,7 +1396,7 @@ discard block |
||
| 1396 | 1396 | * |
| 1397 | 1397 | * @param \eZ\Publish\API\Repository\Values\User\RoleCreateStruct $roleCreateStruct |
| 1398 | 1398 | * |
| 1399 | - * @return \eZ\Publish\Core\FieldType\ValidationError[][][] |
|
| 1399 | + * @return \eZ\Publish\Core\FieldType\ValidationError[] |
|
| 1400 | 1400 | */ |
| 1401 | 1401 | protected function validateRoleCreateStruct(APIRoleCreateStruct $roleCreateStruct) |
| 1402 | 1402 | { |
@@ -1426,7 +1426,7 @@ discard block |
||
| 1426 | 1426 | * @param string $function |
| 1427 | 1427 | * @param \eZ\Publish\API\Repository\Values\User\Limitation[] $limitations |
| 1428 | 1428 | * |
| 1429 | - * @return \eZ\Publish\Core\FieldType\ValidationError[][] |
|
| 1429 | + * @return \eZ\Publish\Core\FieldType\ValidationError[] |
|
| 1430 | 1430 | */ |
| 1431 | 1431 | protected function validatePolicy($module, $function, array $limitations) |
| 1432 | 1432 | { |
@@ -123,7 +123,7 @@ discard block |
||
| 123 | 123 | * |
| 124 | 124 | * @param mixed[] $expectedValues |
| 125 | 125 | * @param \eZ\Publish\API\Repository\Values\ValueObject $actualObject |
| 126 | - * @param array $skipProperties |
|
| 126 | + * @param string[] $skipProperties |
|
| 127 | 127 | */ |
| 128 | 128 | protected function assertPropertiesCorrect(array $expectedValues, ValueObject $actualObject, array $skipProperties = array()) |
| 129 | 129 | { |
@@ -158,7 +158,7 @@ discard block |
||
| 158 | 158 | * |
| 159 | 159 | * @param \eZ\Publish\API\Repository\Values\ValueObject $expectedValues |
| 160 | 160 | * @param \eZ\Publish\API\Repository\Values\ValueObject $actualObject |
| 161 | - * @param array $skipProperties |
|
| 161 | + * @param string[] $skipProperties |
|
| 162 | 162 | */ |
| 163 | 163 | protected function assertStructPropertiesCorrect(ValueObject $expectedValues, ValueObject $actualObject, array $skipProperties = array()) |
| 164 | 164 | { |
@@ -951,7 +951,7 @@ discard block |
||
| 951 | 951 | * @param \eZ\Publish\API\Repository\Values\Content\Field[] $fields |
| 952 | 952 | * @param string $mainLanguageCode |
| 953 | 953 | * |
| 954 | - * @return array an array of language code strings |
|
| 954 | + * @return string[] an array of language code strings |
|
| 955 | 955 | */ |
| 956 | 956 | protected function getLanguageCodesFromFields(array $fields, $mainLanguageCode) |
| 957 | 957 | { |
@@ -2298,6 +2298,11 @@ discard block |
||
| 2298 | 2298 | $this->assertRelations($relations, $contentDraft->contentInfo, $mediaContentInfo); |
| 2299 | 2299 | } |
| 2300 | 2300 | |
| 2301 | + /** |
|
| 2302 | + * @param Relation[] $relations |
|
| 2303 | + * @param \eZ\Publish\API\Repository\Values\Content\ContentInfo $sourceContentInfo |
|
| 2304 | + * @param \eZ\Publish\API\Repository\Values\Content\ContentInfo $destinationContentInfo |
|
| 2305 | + */ |
|
| 2301 | 2306 | protected function assertRelations($relations, $sourceContentInfo, $destinationContentInfo) |
| 2302 | 2307 | { |
| 2303 | 2308 | self::assertInternalType('array', $relations); |
@@ -367,7 +367,7 @@ discard block |
||
| 367 | 367 | * |
| 368 | 368 | * @covers \eZ\Publish\Core\Repository\ContentTypeService::loadContentTypeGroups |
| 369 | 369 | * |
| 370 | - * @return array |
|
| 370 | + * @return \eZ\Publish\API\Repository\Values\ContentType\ContentTypeGroup[] |
|
| 371 | 371 | */ |
| 372 | 372 | public function testLoadContentTypeGroups() |
| 373 | 373 | { |
@@ -2038,7 +2038,7 @@ discard block |
||
| 2038 | 2038 | * |
| 2039 | 2039 | * @todo when all fieldTypes are functional revisit this and simplify by testing against fixtures |
| 2040 | 2040 | * |
| 2041 | - * @return array |
|
| 2041 | + * @return ContentType[] |
|
| 2042 | 2042 | */ |
| 2043 | 2043 | public function testLoadContentTypes() |
| 2044 | 2044 | { |
@@ -2946,6 +2946,10 @@ discard block |
||
| 2946 | 2946 | $this->assertAddFieldDefinitionStructValues($loadedType, $fieldDefCreate); |
| 2947 | 2947 | } |
| 2948 | 2948 | |
| 2949 | + /** |
|
| 2950 | + * @param \eZ\Publish\API\Repository\Values\ContentType\ContentTypeDraft $loadedType |
|
| 2951 | + * @param \eZ\Publish\API\Repository\Values\ContentType\FieldDefinitionCreateStruct $fieldDefCreate |
|
| 2952 | + */ |
|
| 2949 | 2953 | public function assertAddFieldDefinitionStructValues($loadedType, $fieldDefCreate) |
| 2950 | 2954 | { |
| 2951 | 2955 | foreach ($loadedType->fieldDefinitions as $fieldDefinition) { |
@@ -3276,6 +3280,11 @@ discard block |
||
| 3276 | 3280 | ); |
| 3277 | 3281 | } |
| 3278 | 3282 | |
| 3283 | + /** |
|
| 3284 | + * @param \eZ\Publish\API\Repository\Values\ContentType\FieldDefinition $originalField |
|
| 3285 | + * @param \eZ\Publish\API\Repository\Values\ContentType\FieldDefinition $updatedField |
|
| 3286 | + * @param \eZ\Publish\API\Repository\Values\ContentType\FieldDefinitionUpdateStruct $updateStruct |
|
| 3287 | + */ |
|
| 3279 | 3288 | protected function assertUpdateFieldDefinitionStructValues($originalField, $updatedField, $updateStruct) |
| 3280 | 3289 | { |
| 3281 | 3290 | $this->assertPropertiesCorrect( |
@@ -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 | { |
@@ -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 | { |
@@ -122,7 +122,7 @@ discard block |
||
| 122 | 122 | * |
| 123 | 123 | * @throws \eZ\Publish\API\Repository\Exceptions\NotFoundException If group can not be found |
| 124 | 124 | * |
| 125 | - * @param mixed $contentTypeGroupId |
|
| 125 | + * @param string $contentTypeGroupId |
|
| 126 | 126 | * |
| 127 | 127 | * @return \eZ\Publish\API\Repository\Values\ContentType\ContentTypeGroup |
| 128 | 128 | */ |
@@ -174,7 +174,7 @@ discard block |
||
| 174 | 174 | /** |
| 175 | 175 | * Get all Content Type Groups. |
| 176 | 176 | * |
| 177 | - * @return \eZ\Publish\API\Repository\Values\ContentType\ContentTypeGroup[] |
|
| 177 | + * @return \eZ\Publish\API\Repository\Values\ValueObject |
|
| 178 | 178 | */ |
| 179 | 179 | public function loadContentTypeGroups() |
| 180 | 180 | { |
@@ -535,9 +535,9 @@ discard block |
||
| 535 | 535 | * ATTENTION: This is not an API method and only meant for internal use in |
| 536 | 536 | * the REST Client implementation. |
| 537 | 537 | * |
| 538 | - * @param mixed $fieldDefinitionListReference |
|
| 538 | + * @param string $fieldDefinitionListReference |
|
| 539 | 539 | * |
| 540 | - * @return \eZ\Publish\Core\REST\Client\Values\FieldDefinitionList |
|
| 540 | + * @return \eZ\Publish\API\Repository\Values\ValueObject |
|
| 541 | 541 | */ |
| 542 | 542 | public function loadFieldDefinitionList($fieldDefinitionListReference) |
| 543 | 543 | { |
@@ -558,9 +558,9 @@ discard block |
||
| 558 | 558 | * ATTENTION: This is not an API method and only meant for internal use in |
| 559 | 559 | * the REST Client implementation. |
| 560 | 560 | * |
| 561 | - * @param mixed $contentTypeGroupListReference |
|
| 561 | + * @param string $contentTypeGroupListReference |
|
| 562 | 562 | * |
| 563 | - * @return \eZ\Publish\Core\REST\Client\Values\ContentTypeGroupRefList |
|
| 563 | + * @return \eZ\Publish\API\Repository\Values\ValueObject |
|
| 564 | 564 | */ |
| 565 | 565 | public function loadContentTypeGroupList($contentTypeGroupListReference) |
| 566 | 566 | { |
@@ -29,7 +29,8 @@ |
||
| 29 | 29 | use eZ\Publish\Core\REST\Common\RequestParser; |
| 30 | 30 | use eZ\Publish\Core\REST\Common\Input\Dispatcher; |
| 31 | 31 | use eZ\Publish\Core\REST\Common\Output\Visitor; |
| 32 | -use eZ\Publish\Core\REST\Common\Message; use eZ\Publish\Core\REST\Client\Exceptions\InvalidArgumentValue; |
|
| 32 | +use eZ\Publish\Core\REST\Common\Message; |
|
| 33 | +use eZ\Publish\Core\REST\Client\Exceptions\InvalidArgumentValue; |
|
| 33 | 34 | use eZ\Publish\Core\REST\Common\Exceptions\InvalidArgumentException; |
| 34 | 35 | use eZ\Publish\Core\REST\Common\Exceptions\ForbiddenException; |
| 35 | 36 | use eZ\Publish\Core\REST\Client\Exceptions\BadStateException; |