_income = $income; $this->is_agent = $is_agent; $this->is_relation = $is_relation; $this->lang_set = $lang_set; } public function getMark() { return $this->_income->getMark(); } /** * 收入模型是否显示 * * @return bool */ public function isShow() { return $this->_income->isShow(); } /** * 收入页的前端路由 * @return string 前端路由名 */ public function getAppUrl() { return $this->_income->getAppUrl(); } public function getTitle() { $mark = $this->_income->getMark(); if (isset($this->lang_set[$mark]['title']) && !empty($this->lang_set[$mark]['title'])) { return $this->lang_set[$mark]['title']; } return $this->_income->getTitle(); } }