private function makeStartingTimestamp($window, $timestamp, $oldTimestamp)
    {
        return $oldTimestamp === Constants::ARGUMENT_NOT_SET
            ? $timestamp - $this->getWindow($window)
            : max($timestamp - $this->getWindow($window), $oldTimestamp + 1);
    }
private function makeStartingTimestamp($window, $timestamp, $oldTimestamp)
    {
        return $oldTimestamp === Constants::ARGUMENT_NOT_SET
            ? $timestamp - $this->getWindow($window)
            : max($timestamp - $this->getWindow($window), $oldTimestamp + 1);
    }
private function makeStartingTimestamp ( $ window , $ timestamp , $ oldTimestamp ) { return $ oldTimestamp === Constants :: ARGUMENT_NOT_SET ? $ timestamp - $ this -> getWindow ( $ window ) : max ( $ timestamp - $ this -> getWindow ( $ window ) , $ oldTimestamp + 1 ) ; }
Make a window based starting timestamp.

@param $window
@param $timestamp
@param $oldTimestamp

@return mixed
Make a window based starting timestamp .