You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -130,9 +130,7 @@ protected function conversationExist()
130
130
}
131
131
132
132
/**
133
-
* Check if the Conversation already exist
134
-
*
135
-
* Check if a conversation has already been created in the database. If the conversation is not found, a new conversation is created. start fetch the data stored in the database
133
+
* Check if a conversation has already been created in the database. If the conversation is not found, a new conversation is created. Start fetches the data stored in the database.
136
134
*
137
135
* @return bool
138
136
*/
@@ -148,11 +146,13 @@ public function start()
148
146
/**
149
147
* Store the array/variable in the database with json_encode() function
150
148
*
149
+
* @todo Verify the query before assigning the $data member variable
150
+
*
151
151
* @param array $data
152
152
*/
153
153
publicfunctionupdate($data)
154
154
{
155
-
//conversation must exist!
155
+
//Conversation must exist!
156
156
if ($this->conversationExist()) {
157
157
$fields['data'] = json_encode($data);
158
158
@@ -165,11 +165,9 @@ public function update($data)
165
165
/**
166
166
* Delete the conversation from the database
167
167
*
168
-
* Currently the Convevrsation is not deleted but just unsetted
168
+
* Currently the Conversation is not deleted but just set to 'stopped'
169
169
*
170
-
* @TODO should return something
171
-
*
172
-
* @param array $data
170
+
* @todo should return something
173
171
*/
174
172
publicfunctionstop()
175
173
{
@@ -181,7 +179,7 @@ public function stop()
181
179
/**
182
180
* Retrieve the command to execute from the conversation
183
181
*
184
-
* @param string
182
+
* @return string|null
185
183
*/
186
184
publicfunctiongetConversationCommand()
187
185
{
@@ -192,9 +190,9 @@ public function getConversationCommand()
0 commit comments