beforeConstruct($data); parent::__construct($data); $this->afterConstruct($data); } protected function beforeConstruct($data){} protected function afterConstruct($data){} }