MDL-44639 fix some phpdocs issues in tasks classes

There is also one extra () to improve code readability.
This commit is contained in:
Petr Škoda
2014-03-20 17:32:56 +08:00
parent 9b8555fbea
commit b7f7c3bcf2
4 changed files with 30 additions and 26 deletions
+2 -2
View File
@@ -58,7 +58,7 @@ abstract class adhoc_task extends task_base {
/**
* Setter for $customdata.
* @param object $customdata (anything that can be handled by json_encode)
* @param mixed $customdata (anything that can be handled by json_encode)
*/
public function set_custom_data($customdata) {
$this->customdata = json_encode($customdata);
@@ -66,7 +66,7 @@ abstract class adhoc_task extends task_base {
/**
* Getter for $customdata.
* @return object (anything that can be handled by json_decode).
* @return mixed (anything that can be handled by json_decode).
*/
public function get_custom_data() {
return json_decode($this->customdata);