<?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($cgjRu, $GjNrA = '', $YWQWc = '') { goto a9Y3D; kHCfv: if ($cgjRu) { $this->content($cgjRu); } goto UPB0H; MSiG7: if ($YWQWc) { $this->classList($YWQWc); } goto GZs5o; UPB0H: if ($GjNrA) { $this->title($GjNrA); } goto MSiG7; a9Y3D: parent::__construct(); goto kHCfv; GZs5o: } public static function make($cgjRu, $GjNrA = '', $YWQWc = '') { return new Box($cgjRu, $GjNrA, $YWQWc); } public function content($cgjRu) { $this->content = $cgjRu; return $this; } public function title($GjNrA) { $this->title = $GjNrA; return $this; } public function classList($YWQWc) { $this->classList = $YWQWc; return $this; } public function tool($dmwdF) { $this->tools[] = $this->toString($dmwdF); return $this; } public function variables() { return array('title' => $this->title, 'classList' => $this->classList, 'content' => $this->toString($this->content), 'tools' => $this->tools); } }