<?php
/**
 * ------------------------ 
 *  版权所有  www.tecmz.com
 *  商业版本请购买正版授权使用
 * ------------------------
*/ namespace ModStart\Widget; use Illuminate\Contracts\Support\Renderable; class Box extends AbstractWidget { protected $view = 'modstart::widget.box'; protected $title = ''; protected $classList = ''; protected $content = ''; protected $tools = array(); public function __construct($vVYCS, $WtBPF = '', $lGr5P = '') { goto UPwLi; wruTL: if ($vVYCS) { $this->content($vVYCS); } goto I03EC; I03EC: if ($WtBPF) { $this->title($WtBPF); } goto hDLSK; hDLSK: if ($lGr5P) { $this->classList($lGr5P); } goto RRa2r; UPwLi: parent::__construct(); goto wruTL; RRa2r: } public static function make($vVYCS, $WtBPF = '', $lGr5P = '') { return new Box($vVYCS, $WtBPF, $lGr5P); } public function content($vVYCS) { $this->content = $vVYCS; return $this; } public function title($WtBPF) { $this->title = $WtBPF; return $this; } public function classList($lGr5P) { $this->classList = $lGr5P; return $this; } public function tool($rrIGF) { $this->tools[] = $this->toString($rrIGF); return $this; } public function variables() { return array('title' => $this->title, 'classList' => $this->classList, 'content' => $this->toString($this->content), 'tools' => $this->tools); } }