protected function computeRollover($currentTime)
    {
        if ($this->when == 'MIDNIGHT') {
            return strtotime("midnight + 1 day", $currentTime);
        }

        if (substr($this->when, 0, 1) == 'W') {
            return strtotime(
                "next " . self::$dayNames[$this->dayOfWeek],
                $currentTime
            );
        }

        return $currentTime + $this->interval;
    }
protected function computeRollover($currentTime)
    {
        if ($this->when == 'MIDNIGHT') {
            return strtotime("midnight + 1 day", $currentTime);
        }

        if (substr($this->when, 0, 1) == 'W') {
            return strtotime(
                "next " . self::$dayNames[$this->dayOfWeek],
                $currentTime
            );
        }

        return $currentTime + $this->interval;
    }
protected function computeRollover ( $ currentTime ) { if ( $ this -> when == 'MIDNIGHT' ) { return strtotime ( "midnight + 1 day" , $ currentTime ) ; } if ( substr ( $ this -> when , 0 , 1 ) == 'W' ) { return strtotime ( "next " . self :: $ dayNames [ $ this -> dayOfWeek ] , $ currentTime ) ; } return $ currentTime + $ this -> interval ; }
Determine when the next log rotation
should take place.

\param int $currentTime
Current time, as a UNIX timestamp.

\retval int
UNIX timestamp for the next log rotation.
Determine when the next log rotation should take place .