* Refactor getBurnData method and case.

This commit is contained in:
tianshujie
2023-09-08 14:08:13 +08:00
parent 26167632f3
commit 51785f643b
3 changed files with 17 additions and 21 deletions
+5 -4
View File
@@ -1931,13 +1931,14 @@ class executionTest
}
/**
* Function getBurnData test by execution.
* 获取执行的燃尽图数据。
* Get execution burn data.
*
* @param int $executionID
* @param int $executionID
* @access public
* @return int
* @return string|array
*/
public function getBurnDataTest($executionID = 0)
public function getBurnDataTest(int $executionID = 0): string|array
{
$execution = $this->executionModel->getByID($executionID);
if(empty($execution)) return '0';