diff options
author | Morris Jobke <hey@morrisjobke.de> | 2020-07-06 10:13:23 +0200 |
---|---|---|
committer | Morris Jobke <hey@morrisjobke.de> | 2020-07-06 10:13:23 +0200 |
commit | b1cdd0dd9b020d56a9e4bac97486aefc0d2e4d32 (patch) | |
tree | c9f6bad27afa344cc08abedeefd700bdc59bd80d /lib/private/BackgroundJob | |
parent | 9b10d354777f7eea21820aec522c4865fb1663fe (diff) | |
download | nextcloud-server-b1cdd0dd9b020d56a9e4bac97486aefc0d2e4d32.tar.gz nextcloud-server-b1cdd0dd9b020d56a9e4bac97486aefc0d2e4d32.zip |
Use formal type hints instead of informal PHPDoc
Signed-off-by: Morris Jobke <hey@morrisjobke.de>
Diffstat (limited to 'lib/private/BackgroundJob')
-rw-r--r-- | lib/private/BackgroundJob/Job.php | 22 |
1 files changed, 6 insertions, 16 deletions
diff --git a/lib/private/BackgroundJob/Job.php b/lib/private/BackgroundJob/Job.php index 30326b6a4f4..a464ea2ba1f 100644 --- a/lib/private/BackgroundJob/Job.php +++ b/lib/private/BackgroundJob/Job.php @@ -32,26 +32,16 @@ use OCP\BackgroundJob\IJobList; use OCP\ILogger; abstract class Job implements IJob { - /** - * @var int $id - */ + /** @var int */ protected $id; - /** - * @var int $lastRun - */ + /** @var int */ protected $lastRun; - /** - * @var mixed $argument - */ + /** @var mixed */ protected $argument; - /** - * @param IJobList $jobList - * @param ILogger|null $logger - */ - public function execute($jobList, ILogger $logger = null) { + public function execute(IJobList $jobList, ILogger $logger = null) { $jobList->setLastRun($this); if ($logger === null) { $logger = \OC::$server->getLogger(); @@ -77,11 +67,11 @@ abstract class Job implements IJob { abstract protected function run($argument); - public function setId($id) { + public function setId(int $id) { $this->id = $id; } - public function setLastRun($lastRun) { + public function setLastRun(int $lastRun) { $this->lastRun = $lastRun; } |