<?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($Afv_G, $g3XgV = '', $thHn0 = '') { goto i0E0t; fSBWX: if ($thHn0) { $this->classList($thHn0); } goto mR831; chLte: if ($g3XgV) { $this->title($g3XgV); } goto fSBWX; i0E0t: parent::__construct(); goto aQbdp; aQbdp: if ($Afv_G) { $this->content($Afv_G); } goto chLte; mR831: } public static function make($Afv_G, $g3XgV = '', $thHn0 = '') { return new Box($Afv_G, $g3XgV, $thHn0); } public function content($Afv_G) { $this->content = $Afv_G; return $this; } public function title($g3XgV) { $this->title = $g3XgV; return $this; } public function classList($thHn0) { $this->classList = $thHn0; return $this; } public function tool($om8qR) { $this->tools[] = $this->toString($om8qR); return $this; } public function variables() { return array('title' => $this->title, 'classList' => $this->classList, 'content' => $this->toString($this->content), 'tools' => $this->tools); } }