protected function ensureJobs()
    {
        if (!$this->hasSourceFiles()) {
            throw new \RuntimeException('source_files must be set');
        }

        if ($this->requireServiceJobId()) {
            return $this;
        }

        if ($this->requireServiceNumber()) {
            return $this;
        }

        if ($this->requireServiceEventType()) {
            return $this;
        }

        if ($this->requireRepoToken()) {
            return $this;
        }

        if ($this->isUnsupportedServiceJob()) {
            return $this;
        }

        throw new RequirementsNotSatisfiedException();
    }
protected function ensureJobs()
    {
        if (!$this->hasSourceFiles()) {
            throw new \RuntimeException('source_files must be set');
        }

        if ($this->requireServiceJobId()) {
            return $this;
        }

        if ($this->requireServiceNumber()) {
            return $this;
        }

        if ($this->requireServiceEventType()) {
            return $this;
        }

        if ($this->requireRepoToken()) {
            return $this;
        }

        if ($this->isUnsupportedServiceJob()) {
            return $this;
        }

        throw new RequirementsNotSatisfiedException();
    }
protected function ensureJobs ( ) { if ( ! $ this -> hasSourceFiles ( ) ) { throw new \ RuntimeException ( 'source_files must be set' ) ; } if ( $ this -> requireServiceJobId ( ) ) { return $ this ; } if ( $ this -> requireServiceNumber ( ) ) { return $ this ; } if ( $ this -> requireServiceEventType ( ) ) { return $ this ; } if ( $ this -> requireRepoToken ( ) ) { return $ this ; } if ( $ this -> isUnsupportedServiceJob ( ) ) { return $ this ; } throw new RequirementsNotSatisfiedException ( ) ; }
Ensure data consistency for jobs API.

@throws \RuntimeException

@return $this
Ensure data consistency for jobs API .