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