ImportSource: better IDE hints

This commit is contained in:
Thomas Gelf 2017-08-18 10:48:58 +02:00
parent 93a42c7fc8
commit bbcdf22466
1 changed files with 9 additions and 0 deletions

View File

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