@@ -18,20 +18,22 @@ interface AdapterInterface
18
18
/**
19
19
* Whether the adapter supports the given subject.
20
20
*
21
+ * @param mixed $subject
22
+ *
21
23
* @return bool
22
24
*/
23
25
public function supports ($ subject );
24
26
25
27
/**
26
- * Launch a translation .
28
+ * Push document to textmaster .
27
29
*
28
30
* @param mixed $subject
29
31
* @param array $properties
30
32
* @param DocumentInterface $document
31
33
*
32
34
* @return DocumentInterface
33
35
*/
34
- public function create ($ subject , array $ properties , DocumentInterface $ document );
36
+ public function push ($ subject , array $ properties , DocumentInterface $ document );
35
37
36
38
/**
37
39
* Make a comparison between textmaster document and its subject.
@@ -43,16 +45,25 @@ public function create($subject, array $properties, DocumentInterface $document)
43
45
public function compare (DocumentInterface $ document );
44
46
45
47
/**
46
- * Complete a translation .
48
+ * Complete a document .
47
49
*
48
50
* @param DocumentInterface $document
49
51
* @param string $satisfaction
50
52
* @param string $message
51
53
*
52
- * @return mixed
54
+ * @return DocumentInterface
53
55
*/
54
56
public function complete (DocumentInterface $ document , $ satisfaction = null , $ message = null );
55
57
58
+ /**
59
+ * Pull document from textmaster.
60
+ *
61
+ * @param DocumentInterface $document
62
+ *
63
+ * @return mixed The subject passed on creation.
64
+ */
65
+ public function pull (DocumentInterface $ document );
66
+
56
67
/**
57
68
* Get subject from document.
58
69
*
0 commit comments