public function serialize(Job $job)
    {
        $attributes = $job->getAttributes();
        $attributes['className'] = get_class($job);
        $attributes['type'] = $job->getType();
        return $attributes;
    }
public function serialize(Job $job)
    {
        $attributes = $job->getAttributes();
        $attributes['className'] = get_class($job);
        $attributes['type'] = $job->getType();
        return $attributes;
    }
public function serialize ( Job $ job ) { $ attributes = $ job -> getAttributes ( ) ; $ attributes [ 'className' ] = get_class ( $ job ) ; $ attributes [ 'type' ] = $ job -> getType ( ) ; return $ attributes ; }
Convert a job into an array that can be passed on to a backend.
@param \Emphloyer\Job $job
@return array
Convert a job into an array that can be passed on to a backend .