@@ -74,16 +74,16 @@ discard block |
||
| 74 | 74 | * @param SessionInterface $session The initialized Session for communicating |
| 75 | 75 | * @param string $statement Optional, manually prepared statement. If provided, |
| 76 | 76 | * excludes the use of property list, type list, where clause and ordering. |
| 77 | - * @param array $selectPropertyIds An array PropertyDefinitionInterface |
|
| 77 | + * @param string[] $selectPropertyIds An array PropertyDefinitionInterface |
|
| 78 | 78 | * or strings, can be mixed. When strings are provided those can be |
| 79 | 79 | * either the actual ID of the property or the query name thereof. |
| 80 | - * @param array $fromTypes An array of TypeDefinitionInterface or strings, |
|
| 80 | + * @param string[] $fromTypes An array of TypeDefinitionInterface or strings, |
|
| 81 | 81 | * can be mixed. When strings are provided those can be either the |
| 82 | 82 | * actual ID of the type, or it can be the query name thereof. If |
| 83 | 83 | * an array of arrays is provided, each array is expected to contain |
| 84 | 84 | * a TypeDefinition or string as first member and an alias as second. |
| 85 | 85 | * @param string|null $whereClause If searching by custom clause, provide here. |
| 86 | - * @param array $orderByPropertyIds List of property IDs by which to sort. |
|
| 86 | + * @param string[] $orderByPropertyIds List of property IDs by which to sort. |
|
| 87 | 87 | * Each value can be either a PropertyDefinitionInterface instance, |
| 88 | 88 | * a string (in which case, ID or queryName) or an array of a string |
| 89 | 89 | * or PropertyDefinition as first member and ASC or DESC as second. |
@@ -495,7 +495,7 @@ discard block |
||
| 495 | 495 | /** |
| 496 | 496 | * Escapes string for query |
| 497 | 497 | * |
| 498 | - * @param $string |
|
| 498 | + * @param string $string |
|
| 499 | 499 | * @return string |
| 500 | 500 | */ |
| 501 | 501 | protected function escape($string) |
@@ -506,7 +506,7 @@ discard block |
||
| 506 | 506 | /** |
| 507 | 507 | * Escapes string, but not escapes backslashes ('\') in front of '%' and '_'. |
| 508 | 508 | * |
| 509 | - * @param $string |
|
| 509 | + * @param string $string |
|
| 510 | 510 | * @return string |
| 511 | 511 | */ |
| 512 | 512 | protected function escapeLike($string) |
@@ -523,7 +523,7 @@ discard block |
||
| 523 | 523 | /** |
| 524 | 524 | * Escapes string, but not escapes backslashes ('\') in front of '*' and '?'. |
| 525 | 525 | * |
| 526 | - * @param $string |
|
| 526 | + * @param string $string |
|
| 527 | 527 | * @return string |
| 528 | 528 | */ |
| 529 | 529 | protected function escapeContains($string) |
@@ -12,7 +12,6 @@ |
||
| 12 | 12 | |
| 13 | 13 | use Dkd\PhpCmis\Constants; |
| 14 | 14 | use Dkd\PhpCmis\Data\AclInterface; |
| 15 | -use Dkd\PhpCmis\PropertyIds; |
|
| 16 | 15 | use GuzzleHttp\Stream\StreamInterface; |
| 17 | 16 | use Dkd\PhpCmis\Data\ExtensionDataInterface; |
| 18 | 17 | use Dkd\PhpCmis\Data\ObjectDataInterface; |
@@ -202,7 +202,7 @@ |
||
| 202 | 202 | * @param boolean $includeAcl if <code>true</code>, then the repository must return the ACL for the object |
| 203 | 203 | * (default is <code>false</code>) |
| 204 | 204 | * @param ExtensionDataInterface|null $extension |
| 205 | - * @return ObjectDataInterface |
|
| 205 | + * @return null|\Dkd\PhpCmis\DataObjects\ObjectData |
|
| 206 | 206 | */ |
| 207 | 207 | public function getObjectOfLatestVersion( |
| 208 | 208 | $repositoryId, |
@@ -326,7 +326,7 @@ |
||
| 326 | 326 | * |
| 327 | 327 | * @param boolean $refresh if this parameter is set to <code>true</code>, this object will be refreshed after the |
| 328 | 328 | * content stream has been deleted |
| 329 | - * @return DocumentInterface|null the updated document, or <code>null</code> if the repository did not return |
|
| 329 | + * @return null|\Dkd\PhpCmis\CmisObject\CmisObjectInterface the updated document, or <code>null</code> if the repository did not return |
|
| 330 | 330 | * an object ID |
| 331 | 331 | */ |
| 332 | 332 | public function deleteContentStream($refresh = true) |
@@ -993,7 +993,7 @@ |
||
| 993 | 993 | * @param RelationshipDirection $relationshipDirection |
| 994 | 994 | * @param ObjectTypeInterface $type |
| 995 | 995 | * @param OperationContextInterface|null $context |
| 996 | - * @return RelationshipInterface[] |
|
| 996 | + * @return Data\ObjectListInterface |
|
| 997 | 997 | */ |
| 998 | 998 | public function getRelationships( |
| 999 | 999 | ObjectIdInterface $objectId, |
@@ -28,7 +28,6 @@ |
||
| 28 | 28 | use Dkd\PhpCmis\SessionParameter; |
| 29 | 29 | use GuzzleHttp\Stream\LimitStream; |
| 30 | 30 | use GuzzleHttp\Message\Response; |
| 31 | -use GuzzleHttp\Stream\Stream; |
|
| 32 | 31 | use GuzzleHttp\Stream\StreamInterface; |
| 33 | 32 | |
| 34 | 33 | /** |
@@ -835,7 +835,7 @@ discard block |
||
| 835 | 835 | * @param integer $skipCount number of potential results that the repository MUST skip/page over before |
| 836 | 836 | * returning any results (default is 0) |
| 837 | 837 | * @param ExtensionDataInterface|null $extension |
| 838 | - * @return RenditionDataInterface[] |
|
| 838 | + * @return \Dkd\PhpCmis\DataObjects\RenditionData[] |
|
| 839 | 839 | * @throws CmisInvalidArgumentException If object id is empty or skip count not of type integer |
| 840 | 840 | */ |
| 841 | 841 | public function getRenditions( |
@@ -879,7 +879,7 @@ discard block |
||
| 879 | 879 | * @param string $targetFolderId the identifier for the target folder |
| 880 | 880 | * @param string $sourceFolderId the identifier for the source folder |
| 881 | 881 | * @param ExtensionDataInterface|null $extension |
| 882 | - * @return ObjectDataInterface|null Returns object of type ObjectDataInterface or <code>null</code> |
|
| 882 | + * @return null|\Dkd\PhpCmis\DataObjects\ObjectData Returns object of type ObjectDataInterface or <code>null</code> |
|
| 883 | 883 | * if the repository response was empty |
| 884 | 884 | */ |
| 885 | 885 | public function moveObject( |
@@ -1025,7 +1025,7 @@ discard block |
||
| 1025 | 1025 | /** |
| 1026 | 1026 | * @param string $identifier |
| 1027 | 1027 | * @param mixed $additionalHashValues |
| 1028 | - * @return array |
|
| 1028 | + * @return string[] |
|
| 1029 | 1029 | */ |
| 1030 | 1030 | protected function createCacheKey($identifier, $additionalHashValues) |
| 1031 | 1031 | { |
@@ -1038,7 +1038,7 @@ discard block |
||
| 1038 | 1038 | /** |
| 1039 | 1039 | * Returns TRUE if an object with cache key $identifier is currently cached. |
| 1040 | 1040 | * |
| 1041 | - * @param array $identifier |
|
| 1041 | + * @param string[] $identifier |
|
| 1042 | 1042 | * @return boolean |
| 1043 | 1043 | */ |
| 1044 | 1044 | protected function isCached(array $identifier) |
@@ -1049,7 +1049,7 @@ discard block |
||
| 1049 | 1049 | /** |
| 1050 | 1050 | * Gets the cached object with cache key $identifier. |
| 1051 | 1051 | * |
| 1052 | - * @param string $identifier |
|
| 1052 | + * @param string[] $identifier |
|
| 1053 | 1053 | * @return mixed |
| 1054 | 1054 | */ |
| 1055 | 1055 | protected function getCached(array $identifier) |
@@ -1060,7 +1060,7 @@ discard block |
||
| 1060 | 1060 | /** |
| 1061 | 1061 | * Gets the cached object with cache key $identifier. |
| 1062 | 1062 | * |
| 1063 | - * @param string $identifier |
|
| 1063 | + * @param string[] $identifier |
|
| 1064 | 1064 | * @param mixed $object |
| 1065 | 1065 | * @return mixed |
| 1066 | 1066 | */ |
@@ -423,7 +423,7 @@ discard block |
||
| 423 | 423 | } |
| 424 | 424 | |
| 425 | 425 | /** |
| 426 | - * @param array|null $data |
|
| 426 | + * @param RepositoryCapabilities|null $data |
|
| 427 | 427 | * @return AclCapabilities|null |
| 428 | 428 | */ |
| 429 | 429 | public function convertAclCapabilities(array $data = null) |
@@ -503,7 +503,7 @@ discard block |
||
| 503 | 503 | * Convert an array to a type definition object |
| 504 | 504 | * |
| 505 | 505 | * @param array|null $data |
| 506 | - * @return AbstractTypeDefinition|null |
|
| 506 | + * @return TypeDefinitionInterface |
|
| 507 | 507 | * @throws CmisInvalidArgumentException |
| 508 | 508 | */ |
| 509 | 509 | public function convertTypeDefinition(array $data = null) |
@@ -1470,7 +1470,7 @@ discard block |
||
| 1470 | 1470 | * Convert given input data to a TypeChildren object |
| 1471 | 1471 | * |
| 1472 | 1472 | * @param array|null $data |
| 1473 | - * @return TypeDefinitionListInterface|null Returns a TypeDefinitionListInterface object or <code>null</code> |
|
| 1473 | + * @return null|TypeDefinitionList Returns a TypeDefinitionListInterface object or <code>null</code> |
|
| 1474 | 1474 | * if empty data is given. |
| 1475 | 1475 | */ |
| 1476 | 1476 | public function convertTypeChildren(array $data = null) |