<?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($rFmqf, $yP7h6 = '', $FuIHa = '') { goto JyxBq; JyxBq: parent::__construct(); goto ZhSay; Mg8Z_: if ($FuIHa) { $this->classList($FuIHa); } goto lUDSi; ZhSay: if ($rFmqf) { $this->content($rFmqf); } goto ihGYn; ihGYn: if ($yP7h6) { $this->title($yP7h6); } goto Mg8Z_; lUDSi: } public static function make($rFmqf, $yP7h6 = '', $FuIHa = '') { return new Box($rFmqf, $yP7h6, $FuIHa); } public function content($rFmqf) { $this->content = $rFmqf; return $this; } public function title($yP7h6) { $this->title = $yP7h6; return $this; } public function classList($FuIHa) { $this->classList = $FuIHa; return $this; } public function tool($nLK4j) { $this->tools[] = $this->toString($nLK4j); return $this; } public function variables() { return array('title' => $this->title, 'classList' => $this->classList, 'content' => $this->toString($this->content), 'tools' => $this->tools); } }