Cronario\AbstractJob::getId PHP Method

getId() public method

public getId ( ) : mixed
return mixed
    public function getId()
    {
        return $this->getData(self::P_ID);
    }

Usage Example

Beispiel #1
0
 /**
  * @param AbstractJob $job
  *
  * @return bool
  * @throws \Cronario\Exception\JobException
  */
 public function save(AbstractJob $job)
 {
     $data = $job->getData();
     if (!$job->isStored()) {
         $job->setId(uniqid());
     }
     $this->redis->set($this->namespace . $job->getId(), json_encode($data));
     return true;
 }
All Usage Examples Of Cronario\AbstractJob::getId