File tree Expand file tree Collapse file tree 1 file changed +9
-3
lines changed
Expand file tree Collapse file tree 1 file changed +9
-3
lines changed Original file line number Diff line number Diff line change @@ -26,7 +26,9 @@ class Json {
2626
2727 /**
2828 * Creating JSON file from array.
29- *
29+ *
30+ * @since 1.0.0
31+ *
3032 * @param array $array → array to be converted to JSON file
3133 * @param string $pathfile → path to the file
3234 *
@@ -58,7 +60,9 @@ public static function arrayToFile(array $array, string $pathfile): bool {
5860
5961 /**
6062 * Save to array the JSON file content.
61- *
63+ *
64+ * @since 1.0.0
65+ *
6266 * @param string $pathfile → path to JSON file
6367 *
6468 * @throws JsonException → there is no file
@@ -83,6 +87,8 @@ public static function fileToArray(string $pathfile): array {
8387 /**
8488 * Check for errors.
8589 *
90+ * @since 1.0.0
91+ *
8692 * @throws JsonException → JSON (encode-decode) error
8793 * @return true
8894 */
@@ -106,4 +112,4 @@ public static function jsonLastError() {
106112 throw new JsonException ('Unknown error ' , 995 );
107113 }
108114 }
109- }
115+ }
You can’t perform that action at this time.
0 commit comments