src/AppBundle/Component/Wrapper/Wrapper.php
(开头部分) 829B这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。
<?php
namespace AppBundle\Component\Wrapper;
abstract class Wrapper
{
protected $container;
abstract protected function getWrapList();
public function __construct($container)
{
$this->container = $container;
}
public function handle($object, $function = '')
{
if (empty($function)) {
$list = $this->getWrapList();
} else {
$list = array($function);
}
foreach ($list as $item) {
$object = $this->execute($object, $item);
}
return $object;
}
private function execute($object, $function)
{
$isCallAble = is_callable(array($this, $function));
if ($isCallAble) {
$object = call_user_func(array($this, $function), $object);
}
return $object;
}
}
24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明
AI 解读 AI
登录后可用,每次 10 算力,解读结果公开显示在下面。
还没有人解读过这个文件。