<?php
/**
 * ------------------------ 
 *  版权所有  www.tecmz.com
 *  商业版本请购买正版授权使用
 * ------------------------
*/ namespace ModStart\Support\Concern; trait HasArguments { private $arguments = array(); public function setArgument($TUuqF, $tzAUI = null) { if (is_array($TUuqF)) { foreach ($TUuqF as $U9AsU => $ohYVl) { $this->arguments[$U9AsU] = $ohYVl; } } else { $this->arguments[$TUuqF] = $tzAUI; } } public function getArgument($TUuqF, $abOlZ = null) { return isset($this->arguments[$TUuqF]) ? $this->arguments[$TUuqF] : $abOlZ; } }