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