@@ -52,7 +52,7 @@ interface ICache {
5252 public function getNumericStorageId ();
5353
5454 /**
55- * get the stored metadata of a file or folder
55+ * Get the stored metadata of a file or folder.
5656 *
5757 * @param string | int $file either the path of a file or folder or the file id for a file or folder
5858 * @return ICacheEntry|false the cache entry or false if the file is not found in the cache
@@ -61,20 +61,21 @@ public function getNumericStorageId();
6161 public function get ($ file );
6262
6363 /**
64- * get the metadata of all files stored in $folder
64+ * Get the metadata of all files stored in $folder.
6565 *
66- * Only returns files one level deep, no recursion
66+ * @note This only returns files one level deep with no recursion.
6767 *
6868 * @param string $folder
69+ * @param ?non-empty-string $mimeTypeFilter The mimetype or mimepart for which the content should be filtered
6970 * @return ICacheEntry[]
7071 * @since 9.0.0
7172 */
72- public function getFolderContents ($ folder );
73+ public function getFolderContents (string $ folder, ? string $ mimeTypeFilter = null );
7374
7475 /**
75- * get the metadata of all files stored in $folder
76+ * Get the metadata of all files stored in $folder.
7677 *
77- * Only returns files one level deep, no recursion
78+ * @note This only returns files one level deep with no recursion.
7879 *
7980 * @param int $fileId the file id of the folder
8081 * @param ?non-empty-string $mimeTypeFilter The mimetype or mimepart for which the content should be filtered
@@ -85,8 +86,9 @@ public function getFolderContents($folder);
8586 public function getFolderContentsById (int $ fileId , ?string $ mimeTypeFilter = null );
8687
8788 /**
88- * store meta data for a file or folder
89- * This will automatically call either insert or update depending on if the file exists
89+ * Store meta data for a file or folder.
90+ *
91+ * This will automatically call either insert or update depending on if the file exists.
9092 *
9193 * @param string $file
9294 * @param array $data
0 commit comments