/** * Class constructor * * @param string View Type * @param CompanyModel[] $companyModels * @throws ViewException */ public function __construct($viewType = 'html', $companyModels) { parent::__construct(); if (!isset($this->_supportedViewTypes[$viewType])) { throw new ViewException("Unsupported view type\n"); } $this->_viewType = $viewType; $this->setCompanyModels($companyModels); }
/** * Class constructor * * @param string View Type * @throws ViewException */ public function __construct($viewType = 'html', $applicationStatusModels = null) { parent::__construct(); if (!isset($this->_supportedViewTypes[$viewType])) { throw new ViewException("Unsupported view type\n"); } $this->_viewType = $viewType; $this->_applicationStatusModels = $applicationStatusModels; }