【发布时间】:2012-06-11 09:07:03
【问题描述】:
我正在编写一个 Gearman 客户端-工作者脚本。我们可以将 Gearman 回调方法声明为受保护的或私有的吗?即
$this->gearmanClient->setCompleteCallback(array($this, 'JobComplete'));
$this->gearmanClient->setFailCallback(array($this, 'JobFailCallBack'));
与“JobComplete”方法等一起使用的最佳访问运算符是什么?
【问题讨论】: