<?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($DTnPC, $IJdfw = '', $xCTpZ = '') { goto NZ1sw; EkG17: if ($DTnPC) { $this->content($DTnPC); } goto eWOuh; eWOuh: if ($IJdfw) { $this->title($IJdfw); } goto q6nLc; q6nLc: if ($xCTpZ) { $this->classList($xCTpZ); } goto fKDaV; NZ1sw: parent::__construct(); goto EkG17; fKDaV: } public static function make($DTnPC, $IJdfw = '', $xCTpZ = '') { return new Box($DTnPC, $IJdfw, $xCTpZ); } public function content($DTnPC) { $this->content = $DTnPC; return $this; } public function title($IJdfw) { $this->title = $IJdfw; return $this; } public function classList($xCTpZ) { $this->classList = $xCTpZ; return $this; } public function tool($CnrNc) { $this->tools[] = $this->toString($CnrNc); return $this; } public function variables() { return array('title' => $this->title, 'classList' => $this->classList, 'content' => $this->toString($this->content), 'tools' => $this->tools); } }