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

createPayload() защищенный Метод

Create a payload string from the given job and data
protected createPayload ( ) : string
Результат string
    protected function createPayload()
    {
        if ($this->data instanceof Closure) {
            $closure = serialize(new Helpers\SerializableClosure($this->data));
            $data = compact('closure');
        } else {
            $data = $this->data;
        }
        return json_encode(array('id' => $this->id, 'class' => $this->class, 'data' => $data));
    }