namespace OC\Core\Command\Background;
class Ajax extends Base {
- protected function getMode() {
+ protected function getMode(): string {
return 'ajax';
}
}
parent::__construct();
}
- protected function configure() {
+ protected function configure(): void {
$mode = $this->getMode();
$this
->setName("background:$mode")
*
* @param InputInterface $input
* @param OutputInterface $output
+ * @return int
*/
protected function execute(InputInterface $input, OutputInterface $output): int {
$mode = $this->getMode();
namespace OC\Core\Command\Background;
class Cron extends Base {
- protected function getMode() {
+ protected function getMode(): string {
return 'cron';
}
}
;
}
+ /**
+ * @throws \ReflectionException
+ */
protected function execute(InputInterface $input, OutputInterface $output): int {
$jobId = (int) $input->getArgument('job-id');
return 0;
}
- protected function printJobInfo(int $jobId, IJob $job, OutputInterface$output): void {
+ /**
+ * @throws \ReflectionException
+ */
+ protected function printJobInfo(int $jobId, IJob $job, OutputInterface $output): void {
$row = $this->jobList->getDetailsById($jobId);
$lastRun = new \DateTime();
namespace OC\Core\Command\Background;
class WebCron extends Base {
- protected function getMode() {
+ protected function getMode(): string {
return 'webcron';
}
}