Skip to content

Commit 0acf133

Browse files
Added method 'add'
1 parent 16c0cb7 commit 0acf133

2 files changed

Lines changed: 11 additions & 1 deletion

File tree

composer.json

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,5 +23,10 @@
2323
"psr-4": {
2424
"Quillstack\\StorageInterface\\": "src/"
2525
}
26+
},
27+
"extra": {
28+
"branch-alias": {
29+
"dev-main": "1.0.x-dev"
30+
}
2631
}
2732
}

src/StorageInterface.php

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,10 +22,15 @@ public function exists(string $path): bool;
2222
public function missing(string $path): bool;
2323

2424
/**
25-
* Saves the contents to the file.
25+
* Saves the contents to the file, the existing file is overwritten.
2626
*/
2727
public function save(string $path, mixed $contents): bool;
2828

29+
/**
30+
* Saves the contents at the end of the file.
31+
*/
32+
public function add(string $path, mixed $contents): bool;
33+
2934
/**
3035
* Deletes one or more files.
3136
*/

0 commit comments

Comments
 (0)