This commit is contained in:
2021-08-04 14:33:39 +08:00
parent e479529347
commit 864c62c345
3 changed files with 9 additions and 9 deletions
+5 -5
View File
@@ -31,11 +31,11 @@ class TaskContainer extends BaseObject
}
/**
* @param $topic
* @return mixed|null
*/
public function getConsumer(string $topic)
/**
* @param string $topic
* @return mixed
*/
public function getConsumer(string $topic): mixed
{
return $this->_topics[$topic] ?? null;
}