ImportSource: better IDE hints

This commit is contained in:
Thomas Gelf 2017-08-18 10:48:58 +02:00
parent 93a42c7fc8
commit bbcdf22466

View File

@ -36,11 +36,20 @@ class ImportSource extends DbObjectWithSettings
private $rowModifiers; private $rowModifiers;
/**
* @param bool $required
* @return ImportRun|null
*/
public function fetchLastRun($required = false) public function fetchLastRun($required = false)
{ {
return $this->fetchLastRunBefore(time() + 1, $required); return $this->fetchLastRunBefore(time() + 1, $required);
} }
/**
* @param $timestamp
* @param bool $required
* @return ImportRun|null
*/
public function fetchLastRunBefore($timestamp, $required = false) public function fetchLastRunBefore($timestamp, $required = false)
{ {
if (! $this->hasBeenLoadedFromDb()) { if (! $this->hasBeenLoadedFromDb()) {