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