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