aboutsummaryrefslogtreecommitdiffhomepage
path: root/application/bookmark/BookmarkIO.php
diff options
context:
space:
mode:
Diffstat (limited to 'application/bookmark/BookmarkIO.php')
-rw-r--r--application/bookmark/BookmarkIO.php6
1 files changed, 4 insertions, 2 deletions
diff --git a/application/bookmark/BookmarkIO.php b/application/bookmark/BookmarkIO.php
index 099653b0..f40fa476 100644
--- a/application/bookmark/BookmarkIO.php
+++ b/application/bookmark/BookmarkIO.php
@@ -1,5 +1,7 @@
1<?php 1<?php
2 2
3declare(strict_types=1);
4
3namespace Shaarli\Bookmark; 5namespace Shaarli\Bookmark;
4 6
5use malkusch\lock\mutex\Mutex; 7use malkusch\lock\mutex\Mutex;
@@ -61,7 +63,7 @@ class BookmarkIO
61 /** 63 /**
62 * Reads database from disk to memory 64 * Reads database from disk to memory
63 * 65 *
64 * @return BookmarkArray instance 66 * @return Bookmark[]
65 * 67 *
66 * @throws NotWritableDataStoreException Data couldn't be loaded 68 * @throws NotWritableDataStoreException Data couldn't be loaded
67 * @throws EmptyDataStoreException Datastore file exists but does not contain any bookmark 69 * @throws EmptyDataStoreException Datastore file exists but does not contain any bookmark
@@ -101,7 +103,7 @@ class BookmarkIO
101 /** 103 /**
102 * Saves the database from memory to disk 104 * Saves the database from memory to disk
103 * 105 *
104 * @param BookmarkArray $links instance. 106 * @param Bookmark[] $links
105 * 107 *
106 * @throws NotWritableDataStoreException the datastore is not writable 108 * @throws NotWritableDataStoreException the datastore is not writable
107 */ 109 */