* Modify programplan-model getPlans test case.

This commit is contained in:
liuchenglong
2023-05-11 13:00:54 +00:00
parent c0d3bb9271
commit 3769477d92
2 changed files with 16 additions and 16 deletions
+3 -1
View File
@@ -65,6 +65,7 @@ class programplanModel extends model
}
/**
* 获取阶段列表。
* Get plans.
*
* @param int $executionID
@@ -73,9 +74,10 @@ class programplanModel extends model
* @access public
* @return array
*/
public function getPlans($executionID = 0, $productID = 0, $orderBy = 'id_asc')
public function getPlans(int $executionID = 0, int $productID = 0, string $orderBy = 'id_asc'): array
{
$plans = $this->getStage($executionID, $productID, 'all', $orderBy);
if(!$plans) return array();
$parents = array();
$children = array();