<?php
/**
 * ------------------------ 
 *  版权所有  www.tecmz.com
 *  商业版本请购买正版授权使用
 * ------------------------
*/ namespace ModStart\Support\Concern; trait HasVariables { protected $variables = array(); public function varaibles() { return $this->variables; } public function setVariable($XggBq, $ib3B9 = null) { if (is_array($XggBq)) { foreach ($XggBq as $F_a6B => $JiRHR) { $this->variables[$F_a6B] = $JiRHR; } } else { $this->variables[$XggBq] = $ib3B9; } } public function getVariable($XggBq, $TGBtt = null) { return isset($this->variables[$XggBq]) ? $this->variables[$XggBq] : $TGBtt; } }