コード例 #1
0
ファイル: Tube.php プロジェクト: zwilias/beanie
 protected function sync()
 {
     $this->server->transformTubeStatusTo($this->getTubeStatus(), TubeStatus::TRANSFORM_USE);
 }
コード例 #2
0
ファイル: Worker.php プロジェクト: zwilias/beanie
 /**
  * @return JobOath
  * @throws Exception\InvalidArgumentException
  */
 public function reserveOath()
 {
     return $this->jobFactory->createFromCommand($this->commandFactory->create(CommandInterface::COMMAND_RESERVE), $this->server->transformTubeStatusTo($this->getTubeStatus(), TubeStatus::TRANSFORM_WATCHED));
 }