'']) { //进行赋值 $this->data = $data; //进行赋值 $this->options = $options; } /** * Build the message. * * @return $this */ public function build() { // 如果有视图,获取视图 if( !empty($this->options['views']) ) $this->view($this->options['views']); // 如果有数据,分配数据 if( !empty($this->data) ) $this->with($this->data); // 返回自己 return $this; } }