<?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($gP2DQ, $sEiap = '', $be9EZ = '') { goto m9lyj; m9lyj: parent::__construct(); goto JB6CH; JB6CH: if ($gP2DQ) { $this->content($gP2DQ); } goto G1xuu; G1xuu: if ($sEiap) { $this->title($sEiap); } goto JvF9W; JvF9W: if ($be9EZ) { $this->classList($be9EZ); } goto lWuDx; lWuDx: } public static function make($gP2DQ, $sEiap = '', $be9EZ = '') { return new Box($gP2DQ, $sEiap, $be9EZ); } public function content($gP2DQ) { $this->content = $gP2DQ; return $this; } public function title($sEiap) { $this->title = $sEiap; return $this; } public function classList($be9EZ) { $this->classList = $be9EZ; return $this; } public function tool($qskNe) { $this->tools[] = $this->toString($qskNe); return $this; } public function variables() { return array('title' => $this->title, 'classList' => $this->classList, 'content' => $this->toString($this->content), 'tools' => $this->tools); } }