src/AppBundle/Component/Activity/ActivityConfig.php
(开头部分) 1KB这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。
<?php
namespace AppBundle\Component\Activity;
class ActivityConfig implements \ArrayAccess
{
private $config;
public function __construct($config)
{
$this->config = $config;
}
public function offsetExists($offset)
{
return $this->__isset($offset);
}
public function offsetGet($offset)
{
return $this->__get($offset);
}
public function offsetSet($offset, $value)
{
return $this->__set($offset, $value);
}
public function offsetUnset($offset)
{
return $this->__unset($offset);
}
public function __set($name, $value)
{
$this->config[$name] = $value;
return $this;
}
public function __get($name)
{
if (array_key_exists($name, $this->config)) {
return $this->config[$name];
}
throw new \RuntimeException("{$name} is not exist.");
}
public function __isset($name)
{
return isset($this->config[$name]);
}
public function __unset($name)
{
unset($this->config[$name]);
}
}
24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明
AI 解读 AI
登录后可用,每次 10 算力,解读结果公开显示在下面。
还没有人解读过这个文件。