<?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($ohNZt, $znmpZ = '', $Gs0cF = '') { goto UmT9Z; jYEsL: if ($znmpZ) { $this->title($znmpZ); } goto jn8ik; Xn1yo: if ($ohNZt) { $this->content($ohNZt); } goto jYEsL; jn8ik: if ($Gs0cF) { $this->classList($Gs0cF); } goto MwfVp; UmT9Z: parent::__construct(); goto Xn1yo; MwfVp: } public static function make($ohNZt, $znmpZ = '', $Gs0cF = '') { return new Box($ohNZt, $znmpZ, $Gs0cF); } public function content($ohNZt) { $this->content = $ohNZt; return $this; } public function title($znmpZ) { $this->title = $znmpZ; return $this; } public function classList($Gs0cF) { $this->classList = $Gs0cF; return $this; } public function tool($kbeJN) { $this->tools[] = $this->toString($kbeJN); return $this; } public function variables() { return array('title' => $this->title, 'classList' => $this->classList, 'content' => $this->toString($this->content), 'tools' => $this->tools); } }