Resque\Job::createId PHP Метод

createId() публичный статический Метод

Create a new job id
public static createId ( string $queue, string $class, array $data = null, integer $run_at ) : string
$queue string The name of the queue to place the job in
$class string The name of the class that contains the code to execute the job
$data array Any optional arguments that should be passed when the job is executed
$run_at integer Unix timestamp of when to run the job to delay execution
Результат string
    public static function createId($queue, $class, $data = null, $run_at = 0)
    {
        $id = dechex(crc32($queue)) . dechex(microtime(true) * 1000) . md5(json_encode($class) . json_encode($data) . $run_at . uniqid('', true));
        return substr($id, 0, self::ID_LENGTH);
    }