@@ -15,14 +15,7 @@ namespace Drupal\rocket_chat_api\RocketChat {
15
15
private $ server = "http://127.0.0.1:3000 " ;
16
16
17
17
/**
18
- * Retrieves the Storage from a Drupal 7 Variables container
19
- * @param string $elementName
20
- * Name of the Variable to get.
21
- * @param string $default
22
- * A Optional default for when none is found.
23
- *
24
- * @return string
25
- * The value stored or the default or NUll.
18
+ * {@inheritdoc}
26
19
*/
27
20
public function getElement ($ elementName , $ default = NULL ) {
28
21
switch ($ elementName ) {
@@ -33,16 +26,16 @@ namespace Drupal\rocket_chat_api\RocketChat {
33
26
}
34
27
}
35
28
29
+ /**
30
+ * {@inheritdoc}
31
+ */
36
32
public function getJsonDecoder () {
37
33
// TODO: Change the autogenerated stub
38
34
return parent ::getJsonDecoder ();
39
35
}
40
36
41
37
/**
42
- * @param string $elementName
43
- * Key value to set in the RocketChatConfigInterface Backend.
44
- * @param string $newValue
45
- * the new Value to store.
38
+ * {@inheritdoc}
46
39
*/
47
40
public function setElement ($ elementName , $ newValue ) {
48
41
switch ($ elementName ) {
@@ -57,27 +50,21 @@ namespace Drupal\rocket_chat_api\RocketChat {
57
50
}
58
51
59
52
/**
60
- * is this a Debug / verbose Run.
61
- *
62
- * @return bool
53
+ * {@inheritdoc}
63
54
*/
64
55
public function isDebug () {
65
56
return FALSE ;
66
57
}
67
58
68
59
/**
69
- * @param string $message
70
- * Message to report back.
71
- * @param string $type
72
- * Type or Level of the Message
73
- *
74
- * @return mixed
75
- * Notification Result.
60
+ * {@inheritdoc}
76
61
*/
77
62
public function notify ($ message , $ type ) {
78
- return fwrite (STDERR ,"Message [ $ type=> $ message] \n" );
63
+ return fwrite (STDERR , "Message [ $ type=> $ message] \n" );
79
64
}
65
+
80
66
}
67
+
81
68
}
82
69
83
70
namespace {
0 commit comments