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