@@ -26,16 +26,19 @@ discard block |
||
| 26 | 26 | |
| 27 | 27 | /** |
| 28 | 28 | * Begin a transaction. |
| 29 | + * @return void |
|
| 29 | 30 | */ |
| 30 | 31 | public function beginTransaction(); |
| 31 | 32 | |
| 32 | 33 | /** |
| 33 | 34 | * Commit a transaction. |
| 35 | + * @return void |
|
| 34 | 36 | */ |
| 35 | 37 | public function commit(); |
| 36 | 38 | |
| 37 | 39 | /** |
| 38 | 40 | * Rollback a transaction. |
| 41 | + * @return void |
|
| 39 | 42 | */ |
| 40 | 43 | public function rollBack(); |
| 41 | 44 | |
@@ -59,6 +62,7 @@ discard block |
||
| 59 | 62 | * Execute a query against the database. |
| 60 | 63 | * |
| 61 | 64 | * @param string $query |
| 65 | + * @return void |
|
| 62 | 66 | */ |
| 63 | 67 | public function exec($query); |
| 64 | 68 | |
@@ -67,7 +71,7 @@ discard block |
||
| 67 | 71 | * |
| 68 | 72 | * Statements are ducktyped, but need to work like PDOStatement. |
| 69 | 73 | * |
| 70 | - * @return object |
|
| 74 | + * @return \Doctrine\DBAL\Driver\Statement |
|
| 71 | 75 | */ |
| 72 | 76 | public function prepare($query); |
| 73 | 77 | |
@@ -137,8 +141,9 @@ discard block |
||
| 137 | 141 | * |
| 138 | 142 | * This is an optimization and works around the ezcDB implementation. |
| 139 | 143 | * |
| 140 | - * @param string $identifier |
|
| 141 | 144 | * |
| 145 | + * @param string $name |
|
| 146 | + * @param string $alias |
|
| 142 | 147 | * @return string |
| 143 | 148 | */ |
| 144 | 149 | public function alias($name, $alias); |
@@ -167,7 +172,7 @@ discard block |
||
| 167 | 172 | * @param string $table |
| 168 | 173 | * @param string $column |
| 169 | 174 | * |
| 170 | - * @return mixed |
|
| 175 | + * @return string |
|
| 171 | 176 | */ |
| 172 | 177 | public function getAutoIncrementValue($table, $column); |
| 173 | 178 | |
@@ -184,7 +189,7 @@ discard block |
||
| 184 | 189 | /** |
| 185 | 190 | * Returns underlying connection (e.g. Doctrine connection object). |
| 186 | 191 | * |
| 187 | - * @return mixed |
|
| 192 | + * @return \Doctrine\DBAL\Connection |
|
| 188 | 193 | */ |
| 189 | 194 | public function getConnection(); |
| 190 | 195 | } |
@@ -31,7 +31,7 @@ discard block |
||
| 31 | 31 | } |
| 32 | 32 | |
| 33 | 33 | /** |
| 34 | - * @param mixed $route |
|
| 34 | + * @param string $route |
|
| 35 | 35 | */ |
| 36 | 36 | public function setRoute($route) |
| 37 | 37 | { |
@@ -69,7 +69,7 @@ discard block |
||
| 69 | 69 | * Returns a route parameter. |
| 70 | 70 | * |
| 71 | 71 | * @param string $parameterName |
| 72 | - * @param mixed $defaultValue |
|
| 72 | + * @param string $defaultValue |
|
| 73 | 73 | * @param bool $deep |
| 74 | 74 | * |
| 75 | 75 | * @return mixed |
@@ -79,6 +79,9 @@ discard block |
||
| 79 | 79 | return $this->params->get($parameterName, $defaultValue, $deep); |
| 80 | 80 | } |
| 81 | 81 | |
| 82 | + /** |
|
| 83 | + * @param string $parameterName |
|
| 84 | + */ |
|
| 82 | 85 | public function has($parameterName) |
| 83 | 86 | { |
| 84 | 87 | return $this->params->has($parameterName); |
@@ -141,7 +141,7 @@ discard block |
||
| 141 | 141 | * |
| 142 | 142 | * @param $groupPath |
| 143 | 143 | * |
| 144 | - * @return \eZ\Publish\Core\REST\Server\Values\RestUserGroup |
|
| 144 | + * @return Values\CachedValue |
|
| 145 | 145 | */ |
| 146 | 146 | public function loadUserGroup($groupPath) |
| 147 | 147 | { |
@@ -178,7 +178,7 @@ discard block |
||
| 178 | 178 | * |
| 179 | 179 | * @param $userId |
| 180 | 180 | * |
| 181 | - * @return \eZ\Publish\Core\REST\Server\Values\RestUser |
|
| 181 | + * @return Values\CachedValue |
|
| 182 | 182 | */ |
| 183 | 183 | public function loadUser($userId) |
| 184 | 184 | { |
@@ -711,7 +711,7 @@ discard block |
||
| 711 | 711 | * |
| 712 | 712 | * @param $groupPath |
| 713 | 713 | * |
| 714 | - * @return \eZ\Publish\Core\REST\Server\Values\UserGroupList|\eZ\Publish\Core\REST\Server\Values\UserGroupRefList |
|
| 714 | + * @return Values\CachedValue |
|
| 715 | 715 | */ |
| 716 | 716 | public function loadSubUserGroups($groupPath, Request $request) |
| 717 | 717 | { |
@@ -767,7 +767,7 @@ discard block |
||
| 767 | 767 | * |
| 768 | 768 | * @param $userId |
| 769 | 769 | * |
| 770 | - * @return \eZ\Publish\Core\REST\Server\Values\UserGroupRefList |
|
| 770 | + * @return Values\CachedValue |
|
| 771 | 771 | */ |
| 772 | 772 | public function loadUserGroupsOfUser($userId, Request $request) |
| 773 | 773 | { |
@@ -807,7 +807,7 @@ discard block |
||
| 807 | 807 | * |
| 808 | 808 | * @param $groupPath |
| 809 | 809 | * |
| 810 | - * @return \eZ\Publish\Core\REST\Server\Values\UserList|\eZ\Publish\Core\REST\Server\Values\UserRefList |
|
| 810 | + * @return Values\CachedValue |
|
| 811 | 811 | */ |
| 812 | 812 | public function loadUsersFromGroup($groupPath, Request $request) |
| 813 | 813 | { |
@@ -111,6 +111,7 @@ discard block |
||
| 111 | 111 | } |
| 112 | 112 | |
| 113 | 113 | /** |
| 114 | + * @param string $method |
|
| 114 | 115 | * @return HttpRequest |
| 115 | 116 | */ |
| 116 | 117 | public function createHttpRequest($method, $uri, $contentType = '', $acceptType = '') |
@@ -172,6 +173,9 @@ discard block |
||
| 172 | 173 | return $errorMessageString; |
| 173 | 174 | } |
| 174 | 175 | |
| 176 | + /** |
|
| 177 | + * @param string $header |
|
| 178 | + */ |
|
| 175 | 179 | protected function assertHttpResponseHasHeader(HttpResponse $response, $header, $expectedValue = null) |
| 176 | 180 | { |
| 177 | 181 | $headerValue = $response->getHeader($header); |
@@ -181,6 +185,9 @@ discard block |
||
| 181 | 185 | } |
| 182 | 186 | } |
| 183 | 187 | |
| 188 | + /** |
|
| 189 | + * @param string $typeString |
|
| 190 | + */ |
|
| 184 | 191 | protected function generateMediaTypeString($typeString) |
| 185 | 192 | { |
| 186 | 193 | return "application/vnd.ez.api.$typeString"; |
@@ -251,7 +251,7 @@ discard block |
||
| 251 | 251 | * If $languageCode is null the $alias is created in the system's default |
| 252 | 252 | * language. $alwaysAvailable makes the alias available in all languages. |
| 253 | 253 | * |
| 254 | - * @param mixed $locationId |
|
| 254 | + * @param integer $locationId |
|
| 255 | 255 | * @param string $path |
| 256 | 256 | * @param bool $forwarding |
| 257 | 257 | * @param string $languageCode |
@@ -413,7 +413,7 @@ discard block |
||
| 413 | 413 | /** |
| 414 | 414 | * List of user generated or autogenerated url entries, pointing to $locationId. |
| 415 | 415 | * |
| 416 | - * @param mixed $locationId |
|
| 416 | + * @param integer $locationId |
|
| 417 | 417 | * @param bool $custom if true the user generated aliases are listed otherwise the autogenerated |
| 418 | 418 | * |
| 419 | 419 | * @return \eZ\Publish\SPI\Persistence\Content\UrlAlias[] |
@@ -542,9 +542,9 @@ discard block |
||
| 542 | 542 | * |
| 543 | 543 | * This method triggers the change of the autogenerated aliases. |
| 544 | 544 | * |
| 545 | - * @param mixed $locationId |
|
| 546 | - * @param mixed $oldParentId |
|
| 547 | - * @param mixed $newParentId |
|
| 545 | + * @param integer $locationId |
|
| 546 | + * @param integer $oldParentId |
|
| 547 | + * @param integer $newParentId |
|
| 548 | 548 | */ |
| 549 | 549 | public function locationMoved($locationId, $oldParentId, $newParentId) |
| 550 | 550 | { |
@@ -572,9 +572,9 @@ discard block |
||
| 572 | 572 | * |
| 573 | 573 | * This method triggers the creation of the autogenerated aliases for the copied locations |
| 574 | 574 | * |
| 575 | - * @param mixed $locationId |
|
| 576 | - * @param mixed $newLocationId |
|
| 577 | - * @param mixed $newParentId |
|
| 575 | + * @param integer $locationId |
|
| 576 | + * @param integer $newLocationId |
|
| 577 | + * @param integer $newParentId |
|
| 578 | 578 | */ |
| 579 | 579 | public function locationCopied($locationId, $newLocationId, $newParentId) |
| 580 | 580 | { |
@@ -799,7 +799,7 @@ discard block |
||
| 799 | 799 | /** |
| 800 | 800 | * Notifies the underlying engine that a location was deleted or moved to trash. |
| 801 | 801 | * |
| 802 | - * @param mixed $locationId |
|
| 802 | + * @param integer $locationId |
|
| 803 | 803 | */ |
| 804 | 804 | public function locationDeleted($locationId) |
| 805 | 805 | { |
@@ -742,8 +742,8 @@ |
||
| 742 | 742 | * $parentLocationIdList. |
| 743 | 743 | * |
| 744 | 744 | * @param string $contentName |
| 745 | - * @param $contentDescription |
|
| 746 | - * @param array $parentLocationIdList |
|
| 745 | + * @param string $contentDescription |
|
| 746 | + * @param integer[] $parentLocationIdList |
|
| 747 | 747 | * |
| 748 | 748 | * @return \eZ\Publish\API\Repository\Values\Content\Content |
| 749 | 749 | */ |
@@ -11,10 +11,9 @@ |
||
| 11 | 11 | namespace eZ\Publish\API\Repository\Tests; |
| 12 | 12 | |
| 13 | 13 | use EzSystems\EzPlatformSolrSearchEngine\Tests\SetupFactory\LegacySetupFactory as LegacySolrSetupFactory; |
| 14 | -use eZ\Publish\API\Repository\Tests\SetupFactory\LegacyElasticsearch as LegacyElasticsearchSetupFactory; |
|
| 14 | +use eZ\Publish\API\Repository\Tests\SetupFactory\LegacyElasticsearch; |
|
| 15 | 15 | use eZ\Publish\API\Repository\Exceptions\NotFoundException; |
| 16 | 16 | use eZ\Publish\API\Repository\SearchService; |
| 17 | -use eZ\Publish\API\Repository\Tests\SetupFactory\LegacyElasticsearch; |
|
| 18 | 17 | use eZ\Publish\API\Repository\Values\Content\ContentInfo; |
| 19 | 18 | use eZ\Publish\API\Repository\Values\Content\LocationQuery; |
| 20 | 19 | use eZ\Publish\API\Repository\Values\Content\Query; |
@@ -58,7 +58,7 @@ |
||
| 58 | 58 | } |
| 59 | 59 | |
| 60 | 60 | /** |
| 61 | - * @return \eZ\Publish\Core\Repository\Repository|\PHPUnit_Framework_MockObject_MockObject |
|
| 61 | + * @return \eZ\Publish\API\Repository\Repository |
|
| 62 | 62 | */ |
| 63 | 63 | private function getRepositoryMock() |
| 64 | 64 | { |
@@ -118,7 +118,7 @@ discard block |
||
| 118 | 118 | * |
| 119 | 119 | * Result is returned with oldest version first (sorted by created, or version id as long as it's auto increment). |
| 120 | 120 | * |
| 121 | - * @param mixed $contentId |
|
| 121 | + * @param integer $contentId |
|
| 122 | 122 | * @param mixed|null $status Optional argument to filter versions by status, like {@see VersionInfo::STATUS_ARCHIVED}. |
| 123 | 123 | * @param int $limit Limit for items returned, -1 means none. |
| 124 | 124 | * |
@@ -173,7 +173,7 @@ discard block |
||
| 173 | 173 | * |
| 174 | 174 | * @param mixed $locationId |
| 175 | 175 | * |
| 176 | - * @return bool |
|
| 176 | + * @return boolean|null |
|
| 177 | 177 | */ |
| 178 | 178 | public function removeSubtree($locationId) |
| 179 | 179 | { |
@@ -99,7 +99,7 @@ |
||
| 99 | 99 | /** |
| 100 | 100 | * Perform search by the Subtree Criterion for the given subtree path and return results count. |
| 101 | 101 | * |
| 102 | - * @param $subtreePathString |
|
| 102 | + * @param string $subtreePathString |
|
| 103 | 103 | * @return int|null |
| 104 | 104 | */ |
| 105 | 105 | protected function getSubtreeLocationsCount($subtreePathString) |