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