@@ -687,7 +687,7 @@ |
||
687 | 687 | /** |
688 | 688 | * Serialize magic method. |
689 | 689 | * |
690 | - * @return array |
|
690 | + * @return string[] |
|
691 | 691 | */ |
692 | 692 | public function __sleep() |
693 | 693 | { |
@@ -54,7 +54,7 @@ |
||
54 | 54 | /** |
55 | 55 | * Get the services provided by the provider. |
56 | 56 | * |
57 | - * @return array |
|
57 | + * @return string[] |
|
58 | 58 | */ |
59 | 59 | public function provides() |
60 | 60 | { |
@@ -74,6 +74,9 @@ |
||
74 | 74 | $this->setResult($response); |
75 | 75 | } |
76 | 76 | |
77 | + /** |
|
78 | + * @param string $result |
|
79 | + */ |
|
77 | 80 | protected function setResult($result) |
78 | 81 | { |
79 | 82 | $msg = array_key_exists($result, $this->resultArr) ? $this->resultArr[$result] : '未知错误'; |