<?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($LTC5O, $sVLvF = '', $XKXIt = '') { goto yYZQR; yYZQR: parent::__construct(); goto mh2sF; ut3IC: if ($sVLvF) { $this->title($sVLvF); } goto eVvGW; mh2sF: if ($LTC5O) { $this->content($LTC5O); } goto ut3IC; eVvGW: if ($XKXIt) { $this->classList($XKXIt); } goto k4XS3; k4XS3: } public static function make($LTC5O, $sVLvF = '', $XKXIt = '') { return new Box($LTC5O, $sVLvF, $XKXIt); } public function content($LTC5O) { $this->content = $LTC5O; return $this; } public function title($sVLvF) { $this->title = $sVLvF; return $this; } public function classList($XKXIt) { $this->classList = $XKXIt; return $this; } public function tool($nYSvP) { $this->tools[] = $this->toString($nYSvP); return $this; } public function variables() { return array('title' => $this->title, 'classList' => $this->classList, 'content' => $this->toString($this->content), 'tools' => $this->tools); } }