Skip to content

Commit

Permalink
Added method 'add'
Browse files Browse the repository at this point in the history
  • Loading branch information
radek-ziemniewicz committed Jan 16, 2022
1 parent 16c0cb7 commit 0acf133
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 1 deletion.
5 changes: 5 additions & 0 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,5 +23,10 @@
"psr-4": {
"Quillstack\\StorageInterface\\": "src/"
}
},
"extra": {
"branch-alias": {
"dev-main": "1.0.x-dev"
}
}
}
7 changes: 6 additions & 1 deletion src/StorageInterface.php
Original file line number Diff line number Diff line change
Expand Up @@ -22,10 +22,15 @@ public function exists(string $path): bool;
public function missing(string $path): bool;

/**
* Saves the contents to the file.
* Saves the contents to the file, the existing file is overwritten.
*/
public function save(string $path, mixed $contents): bool;

/**
* Saves the contents at the end of the file.
*/
public function add(string $path, mixed $contents): bool;

/**
* Deletes one or more files.
*/
Expand Down

0 comments on commit 0acf133

Please sign in to comment.