public function __construct() { $this->data = new Data(); $this->dataFinal = date('Y-m'); $this->dataFinal .= "-" . date("t", mktime(0, 0, 0, date('m'), '01', date('Y'))); $this->dataInicial = date('Y-m') . "-" . "01"; parent::__construct(); }
/** * @param $id This is id from table * @return ModelConfigImposto */ public function __construct($id){ parent::__construct(); if(!empty($id)){ $this->getModelConfigImposto($id); } return $this; }