code: public function setEmitEvents($emitEvents)
      {
          if (!is_bool($emitEvents)) {
              throw new \InvalidArgumentException('`emitEvents` expects boolean value!');
          }
  
          $this->options['emitEvents'] = (bool) $emitEvents;
          return $this;
      }
docs: Set TRUE if events are emitted during job processing.
  
  @param boolean $emitEvents
  @return CronService
  @throws \InvalidArgumentException Whenever `$emitEvents` is not a boolean value.