option('queued')) { return __DIR__.'/stubs/job-queued.stub'; } else { return __DIR__.'/stubs/job.stub'; } } /** * Get the default namespace for the class. * * @param string $rootNamespace * @return string */ protected function getDefaultNamespace($rootNamespace) { return $rootNamespace.'\Jobs'; } /** * Get the console command options. * * @return array */ protected function getOptions() { return [ ['queued', null, InputOption::VALUE_NONE, 'Indicates that job should be queued.'], ]; } }