public function getControledLifetime($lifetime)
    {
        if (
            null !== $this->_instance_options['min_lifetime']
            && $this->_instance_options['min_lifetime'] > $lifetime
        ) {
            $lifetime = $this->_instance_options['min_lifetime'];
        } elseif (
            null !== $this->_instance_options['max_lifetime']
            && $this->_instance_options['max_lifetime'] < $lifetime
        ) {
            $lifetime = $this->_instance_options['max_lifetime'];
        }

        return $lifetime;
    }
public function getControledLifetime($lifetime)
    {
        if (
            null !== $this->_instance_options['min_lifetime']
            && $this->_instance_options['min_lifetime'] > $lifetime
        ) {
            $lifetime = $this->_instance_options['min_lifetime'];
        } elseif (
            null !== $this->_instance_options['max_lifetime']
            && $this->_instance_options['max_lifetime'] < $lifetime
        ) {
            $lifetime = $this->_instance_options['max_lifetime'];
        }

        return $lifetime;
    }
public function getControledLifetime ( $ lifetime ) { if ( null !== $ this -> _instance_options [ 'min_lifetime' ] && $ this -> _instance_options [ 'min_lifetime' ] > $ lifetime ) { $ lifetime = $ this -> _instance_options [ 'min_lifetime' ] ; } elseif ( null !== $ this -> _instance_options [ 'max_lifetime' ] && $ this -> _instance_options [ 'max_lifetime' ] < $ lifetime ) { $ lifetime = $ this -> _instance_options [ 'max_lifetime' ] ; } return $ lifetime ; }
Control the lifetime against min and max lifetime if provided.

@param int $lifetime

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