vendor/codeages/biz-framework/src/Scheduler/AbstractJob.php
(开头部分) 1KB这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。
<?php
namespace Codeages\Biz\Framework\Scheduler;
use Codeages\Biz\Framework\Context\Biz;
abstract class AbstractJob implements Job, \ArrayAccess
{
const SUCCESS = 'success';
const FAILURE = 'failure';
const RETRY = 'retry';
private $params = array();
/**
* @var Biz
*/
protected $biz;
public function __construct($params = array(), $biz = null)
{
$this->params = $params;
$this->biz = $biz;
}
abstract public function execute();
public function __get($name)
{
return empty($this->params[$name]) ? '' : $this->params[$name];
}
public function __set($name, $value)
{
$this->params[$name] = $value;
}
public function offsetSet($offset, $value)
{
if (is_null($offset)) {
$this->params[] = $value;
} else {
$this->params[$offset] = $value;
}
}
public function offsetExists($offset)
{
return isset($this->params[$offset]);
}
public function offsetUnset($offset)
{
unset($this->params[$offset]);
}
public function offsetGet($offset)
{
return isset($this->params[$offset]) ? $this->params[$offset] : null;
}
24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明
AI 解读 AI
登录后可用,每次 10 算力,解读结果公开显示在下面。
还没有人解读过这个文件。