Skip to content

Commit 4df9837

Browse files
authored
Added a create method (#8)
1 parent 49d40d8 commit 4df9837

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

src/Storage.php

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,8 @@
1414
use Translation\Common\Model\Message;
1515

1616
/**
17-
* The storage is a place when you can store your translations. A database, filesystem or a third party platform.
17+
* The storage is a place when you can store your translations. A database, filesystem
18+
* or a third party platform.
1819
*/
1920
interface Storage
2021
{
@@ -29,6 +30,14 @@ interface Storage
2930
*/
3031
public function get($locale, $domain, $key);
3132

33+
/**
34+
* Create a new translation or asset. If a translation already exist this function
35+
* will do nothing.
36+
*
37+
* @param Message $message
38+
*/
39+
public function create(Message $message);
40+
3241
/**
3342
* Update a translation. Creates a translation if there is none to update.
3443
*

0 commit comments

Comments
 (0)