src/WQ/Job/AbstractJob.php
public function serialize()
    {
        $raw = [];
        foreach ($this->listProperties() as $propName) {
            $raw[$propName] = $this->{$propName};
        }
        $raw['_try_index'] = $this->_try_index + 1;  // !
        return serialize($raw);
    }
public function serialize()
    {
        $raw = [];
        foreach ($this->listProperties() as $propName) {
            $raw[$propName] = $this->{$propName};
        }
        $raw['_try_index'] = $this->_try_index + 1;  // !
        return serialize($raw);
    }
public function serialize ( ) { $ raw = [ ] ; foreach ( $ this -> listProperties ( ) as $ propName ) { $ raw [ $ propName ] = $ this -> { $ propName } ; } $ raw [ '_try_index' ] = $ this -> _try_index + 1 ; // ! return serialize ( $ raw ) ; }
This default implementation stores all public and protected properties.

Override this method if that's not enough or if you want to do some additional pre-serialize processing,
but don't forget to include <tt>{@see $_try_index}+1</tt> in the serialization!
This default implementation stores all public and protected properties .