public function getJobExpiration($job)
    {
        if (! method_exists($job, 'retryUntil') && ! isset($job->timeoutAt)) {
            return;
        }

        $expiration = $job->timeoutAt ?? $job->retryUntil();

        return $expiration instanceof DateTimeInterface
                        ? $expiration->getTimestamp() : $expiration;
    }
public function getJobExpiration($job)
    {
        if (! method_exists($job, 'retryUntil') && ! isset($job->timeoutAt)) {
            return;
        }

        $expiration = $job->timeoutAt ?? $job->retryUntil();

        return $expiration instanceof DateTimeInterface
                        ? $expiration->getTimestamp() : $expiration;
    }
public function getJobExpiration ( $ job ) { if ( ! method_exists ( $ job , 'retryUntil' ) && ! isset ( $ job -> timeoutAt ) ) { return ; } $ expiration = $ job -> timeoutAt ?? $ job -> retryUntil ( ) ; return $ expiration instanceof DateTimeInterface ? $ expiration -> getTimestamp ( ) : $ expiration ; }
Get the expiration timestamp for an object-based queue handler.

@param  mixed  $job
@return mixed
Get the expiration timestamp for an object - based queue handler .