<?php
/**
 * ------------------------ 
 *  版权所有  www.tecmz.com
 *  商业版本请购买正版授权使用
 * ------------------------
*/ namespace ModStart\Core\Config; use ModStart\Core\Util\SerializeUtil; abstract class MConfig { public abstract function get($VFU9l, $snkf0 = '', $K3rrf = true); public abstract function set($VFU9l, $HDpl6); public abstract function remove($VFU9l); public abstract function has($VFU9l); public function getWithEnv($VFU9l, $snkf0 = null) { goto o_WAJ; d1q02: if (empty($HDpl6)) { return $snkf0; } goto AiuZj; Fmu0Q: if (null === $HDpl6) { $HDpl6 = $this->get($VFU9l); } goto d1q02; o_WAJ: $HDpl6 = config('env.CONFIG_' . $VFU9l); goto Fmu0Q; AiuZj: return $HDpl6; goto ljGAi; ljGAi: } public function setArray($VFU9l, $HDpl6) { $this->set($VFU9l, SerializeUtil::jsonEncode($HDpl6)); } public function getArray($VFU9l, $snkf0 = array(), $K3rrf = true) { goto imbYh; a14w5: $HDpl6 = @json_decode($HDpl6, true); goto J4c8s; imbYh: $HDpl6 = $this->get($VFU9l, SerializeUtil::jsonEncode($snkf0), $K3rrf); goto a14w5; J4c8s: if (!is_array($HDpl6) || empty($HDpl6)) { $HDpl6 = array(); } goto fooeD; fooeD: return $HDpl6; goto BR7n2; BR7n2: } public function getBoolean($VFU9l, $snkf0 = false) { goto YaueG; KVfIZ: if (null === $HDpl6) { return $snkf0; } goto KI_JC; YaueG: $HDpl6 = $this->get($VFU9l, null); goto KVfIZ; KI_JC: return $HDpl6 ? true : false; goto evbdO; evbdO: } public function getInteger($VFU9l, $snkf0 = 0) { goto jh7gY; MM6Er: return intval($HDpl6); goto JJ5TE; jh7gY: $HDpl6 = $this->get($VFU9l, null); goto TTit8; TTit8: if (null === $HDpl6) { return $snkf0; } goto MM6Er; JJ5TE: } public function getString($VFU9l, $snkf0 = '') { goto MHYee; co6Ir: return '' . $HDpl6; goto NFkid; QpdYW: if (null === $HDpl6) { return $snkf0; } goto co6Ir; MHYee: $HDpl6 = $this->get($VFU9l, null); goto QpdYW; NFkid: } }