* @package workestimation * @link https://www.zentao.net */ class workestimationModel extends model { /** * Get budget by projectID. * * @param int $projectID * @access public * @return object|null */ public function getBudget(int $projectID): object|null { $budget = $this->dao->select('*')->from(TABLE_WORKESTIMATION) ->where('project')->eq($projectID) ->andWhere('deleted')->eq('0') ->fetch(); return $budget ? $budget : null; } }