Bolt\Storage\Database\Schema\Timer::isCheckRequired PHP Метод

isCheckRequired() публичный Метод

Check if we have determined that we need to do a database check.
public isCheckRequired ( ) : boolean
Результат boolean
    public function isCheckRequired()
    {
        if ($this->expired === false) {
            return false;
        }
        if ($this->cacheFile->exists()) {
            $expiryTimestamp = (int) $this->cacheFile->read();
        } else {
            $expiryTimestamp = 0;
        }
        $ts = Carbon::createFromTimestamp($expiryTimestamp + self::CHECK_INTERVAL);
        return $this->expired = $ts->isPast();
    }