@@ -554,7 +554,7 @@ discard block |
||
554 | 554 | * Convert an array to a type definition object |
555 | 555 | * |
556 | 556 | * @param array|null $data |
557 | - * @return AbstractTypeDefinition|null |
|
557 | + * @return TypeDefinitionInterface |
|
558 | 558 | * @throws CmisInvalidArgumentException |
559 | 559 | */ |
560 | 560 | public function convertTypeDefinition(array $data = null) |
@@ -1601,7 +1601,7 @@ discard block |
||
1601 | 1601 | * Convert given input data to a TypeChildren object |
1602 | 1602 | * |
1603 | 1603 | * @param array|null $data |
1604 | - * @return TypeDefinitionListInterface|null Returns a TypeDefinitionListInterface object or <code>null</code> |
|
1604 | + * @return null|TypeDefinitionList Returns a TypeDefinitionListInterface object or <code>null</code> |
|
1605 | 1605 | * if empty data is given. |
1606 | 1606 | */ |
1607 | 1607 | public function convertTypeChildren(array $data = null) |
@@ -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) |
@@ -347,7 +347,7 @@ discard block |
||
347 | 347 | * either using the ACL from folderId if specified, or being applied if no folderId is specified. |
348 | 348 | * @param AceInterface[] $removeAces A list of ACEs that MUST be removed from the newly-created document |
349 | 349 | * object, either using the ACL from folderId if specified, or being ignored if no folderId is specified. |
350 | - * @return ObjectIdInterface|null the object ID of the new document or <code>null</code> if the document could not |
|
350 | + * @return null|ObjectId the object ID of the new document or <code>null</code> if the document could not |
|
351 | 351 | * be created. |
352 | 352 | * @throws CmisInvalidArgumentException Throws an <code>CmisInvalidArgumentException</code> if empty |
353 | 353 | * property list is given |
@@ -416,7 +416,7 @@ discard block |
||
416 | 416 | * either using the ACL from folderId if specified, or being applied if no folderId is specified. |
417 | 417 | * @param AceInterface[] $removeAces A list of ACEs that MUST be removed from the newly-created document |
418 | 418 | * object, either using the ACL from folderId if specified, or being ignored if no folderId is specified. |
419 | - * @return ObjectIdInterface|null the object ID of the new document or <code>null</code> if the document could not |
|
419 | + * @return null|ObjectId the object ID of the new document or <code>null</code> if the document could not |
|
420 | 420 | * be created. |
421 | 421 | * @throws CmisInvalidArgumentException Throws an <code>CmisInvalidArgumentException</code> if empty |
422 | 422 | * property list is given |
@@ -663,7 +663,7 @@ discard block |
||
663 | 663 | * @param PolicyInterface[] $policies |
664 | 664 | * @param AceInterface[] $addAces |
665 | 665 | * @param AceInterface[] $removeAces |
666 | - * @return ObjectIdInterface|null the object ID of the new relationship or <code>null</code> if the relationship |
|
666 | + * @return null|ObjectId the object ID of the new relationship or <code>null</code> if the relationship |
|
667 | 667 | * could not be created |
668 | 668 | */ |
669 | 669 | public function createRelationship( |
@@ -993,7 +993,7 @@ discard block |
||
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, |
@@ -612,7 +612,7 @@ discard block |
||
612 | 612 | * @param boolean $includeAcl if <code>true</code>, then the repository must return the ACL for the object |
613 | 613 | * (default is <code>false</code>) |
614 | 614 | * @param ExtensionDataInterface|null $extension |
615 | - * @return ObjectDataInterface|null Returns object of type ObjectDataInterface or <code>null</code> |
|
615 | + * @return null|\Dkd\PhpCmis\DataObjects\ObjectData Returns object of type ObjectDataInterface or <code>null</code> |
|
616 | 616 | * if the repository response was empty |
617 | 617 | */ |
618 | 618 | public function getObject( |
@@ -670,7 +670,7 @@ discard block |
||
670 | 670 | * @param boolean $includeAcl if <code>true</code>, then the repository must return the ACL for the object |
671 | 671 | * (default is <code>false</code>) |
672 | 672 | * @param ExtensionDataInterface|null $extension |
673 | - * @return ObjectDataInterface|null Returns object of type <code>ObjectDataInterface</code> or <code>null</code> |
|
673 | + * @return null|\Dkd\PhpCmis\DataObjects\ObjectData Returns object of type <code>ObjectDataInterface</code> or <code>null</code> |
|
674 | 674 | * if the repository response was empty |
675 | 675 | */ |
676 | 676 | public function getObjectByPath( |
@@ -718,7 +718,7 @@ discard block |
||
718 | 718 | * @param string|null $filter a comma-separated list of query names that defines which properties must be |
719 | 719 | * returned by the repository (default is repository specific) |
720 | 720 | * @param ExtensionDataInterface|null $extension |
721 | - * @return PropertiesInterface |
|
721 | + * @return null|\Dkd\PhpCmis\DataObjects\Properties |
|
722 | 722 | */ |
723 | 723 | public function getProperties( |
724 | 724 | $repositoryId, |
@@ -761,7 +761,7 @@ discard block |
||
761 | 761 | * @param integer $skipCount number of potential results that the repository MUST skip/page over before |
762 | 762 | * returning any results (default is 0) |
763 | 763 | * @param ExtensionDataInterface|null $extension |
764 | - * @return RenditionDataInterface[] |
|
764 | + * @return \Dkd\PhpCmis\DataObjects\RenditionData[] |
|
765 | 765 | * @throws CmisInvalidArgumentException If object id is empty or skip count not of type integer |
766 | 766 | */ |
767 | 767 | public function getRenditions( |
@@ -805,7 +805,7 @@ discard block |
||
805 | 805 | * @param string $targetFolderId the identifier for the target folder |
806 | 806 | * @param string $sourceFolderId the identifier for the source folder |
807 | 807 | * @param ExtensionDataInterface|null $extension |
808 | - * @return ObjectDataInterface|null Returns object of type ObjectDataInterface or <code>null</code> |
|
808 | + * @return null|\Dkd\PhpCmis\DataObjects\ObjectData Returns object of type ObjectDataInterface or <code>null</code> |
|
809 | 809 | * if the repository response was empty |
810 | 810 | */ |
811 | 811 | public function moveObject( |
@@ -31,7 +31,7 @@ discard block |
||
31 | 31 | * @param string $repositoryId the identifier for the repository |
32 | 32 | * @param string $objectId the identifier for the PWC |
33 | 33 | * @param ExtensionDataInterface|null $extension |
34 | - * @return ObjectDataInterface|null |
|
34 | + * @return null|\Dkd\PhpCmis\DataObjects\ObjectData |
|
35 | 35 | */ |
36 | 36 | public function cancelCheckOut($repositoryId, $objectId, ExtensionDataInterface $extension = null) |
37 | 37 | { |
@@ -64,7 +64,7 @@ discard block |
||
64 | 64 | * @param AclInterface|null $addAces a list of ACEs that must be added to the newly created document object |
65 | 65 | * @param AclInterface|null $removeAces a list of ACEs that must be removed from the newly created document object |
66 | 66 | * @param ExtensionDataInterface|null $extension |
67 | - * @return ObjectDataInterface|null |
|
67 | + * @return null|\Dkd\PhpCmis\DataObjects\ObjectData |
|
68 | 68 | */ |
69 | 69 | public function checkIn( |
70 | 70 | $repositoryId, |
@@ -134,7 +134,7 @@ discard block |
||
134 | 134 | * @param ExtensionDataInterface|null $extension |
135 | 135 | * @param boolean|null $contentCopied output: indicator if the content of the original |
136 | 136 | * document has been copied to the PWC |
137 | - * @return ObjectDataInterface|null |
|
137 | + * @return null|\Dkd\PhpCmis\DataObjects\ObjectData |
|
138 | 138 | */ |
139 | 139 | public function checkOut( |
140 | 140 | $repositoryId, |
@@ -206,7 +206,7 @@ discard block |
||
206 | 206 | * @param boolean $includeAcl if <code>true</code>, then the repository must return the ACL for the object |
207 | 207 | * (default is <code>false</code>) |
208 | 208 | * @param ExtensionDataInterface|null $extension |
209 | - * @return ObjectDataInterface |
|
209 | + * @return null|\Dkd\PhpCmis\DataObjects\ObjectData |
|
210 | 210 | */ |
211 | 211 | public function getObjectOfLatestVersion( |
212 | 212 | $repositoryId, |
@@ -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; |
@@ -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) |