<?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($xMSF0, $XWWOD = '', $h9jPw = '') { goto EIh3H; EIh3H: parent::__construct(); goto vNPTx; yVl1q: if ($h9jPw) { $this->classList($h9jPw); } goto BpMod; vNPTx: if ($xMSF0) { $this->content($xMSF0); } goto HSrvw; HSrvw: if ($XWWOD) { $this->title($XWWOD); } goto yVl1q; BpMod: } public static function make($xMSF0, $XWWOD = '', $h9jPw = '') { return new Box($xMSF0, $XWWOD, $h9jPw); } public function content($xMSF0) { $this->content = $xMSF0; return $this; } public function title($XWWOD) { $this->title = $XWWOD; return $this; } public function classList($h9jPw) { $this->classList = $h9jPw; return $this; } public function tool($OGtEF) { $this->tools[] = $this->toString($OGtEF); return $this; } public function variables() { return array('title' => $this->title, 'classList' => $this->classList, 'content' => $this->toString($this->content), 'tools' => $this->tools); } }