private function getControledExpireTime($expire)
    {
        $lifetime = $this->getControledLifetime($expire - time());

        if (0 < $lifetime) {
            return time() + $lifetime;
        }

        return $expire;
    }
private function getControledExpireTime($expire)
    {
        $lifetime = $this->getControledLifetime($expire - time());

        if (0 < $lifetime) {
            return time() + $lifetime;
        }

        return $expire;
    }
private function getControledExpireTime ( $ expire ) { $ lifetime = $ this -> getControledLifetime ( $ expire - time ( ) ) ; if ( 0 < $ lifetime ) { return time ( ) + $ lifetime ; } return $ expire ; }
Control the expiration time against min and max lifetime if provided.

@param int $expire

@return int
Control the expiration time against min and max lifetime if provided .