public function forJobDetail(JobDetail $jobDetail)
    {
        if(null == $key = $jobDetail->getKey()) {
            throw new InvalidArgumentException('The given job has not yet had a key assigned to it.');
        }

        $this->jobKey = clone $key;

        return $this;
    }
public function forJobDetail(JobDetail $jobDetail)
    {
        if(null == $key = $jobDetail->getKey()) {
            throw new InvalidArgumentException('The given job has not yet had a key assigned to it.');
        }

        $this->jobKey = clone $key;

        return $this;
    }
public function forJobDetail ( JobDetail $ jobDetail ) { if ( null == $ key = $ jobDetail -> getKey ( ) ) { throw new InvalidArgumentException ( 'The given job has not yet had a key assigned to it.' ) ; } $ this -> jobKey = clone $ key ; return $ this ; }
Set the identity of the Job which should be fired by the produced
Trigger, by extracting the JobKey from the given job.

@param JobDetail $jobDetail the Job to fire.

@return TriggerBuilder

@see Trigger#getJobKey()
Set the identity of the Job which should be fired by the produced Trigger by extracting the JobKey from the given job .