public function invalidate($namespaceId)
    {
        $namespace = $this->fetch($namespaceId);

        if (false === $namespace) {
            return false;
        }

        $newNamespace = rand(0, 10000);
        // @codeCoverageIgnoreStart
        while ($namespace === $newNamespace) {
            $newNamespace = rand(0, 10000);
        }

        // @codeCoverageIgnoreEnd
        return $this->save($namespaceId, $namespaceId . '_' . $newNamespace .'_', 0);
    }
public function invalidate($namespaceId)
    {
        $namespace = $this->fetch($namespaceId);

        if (false === $namespace) {
            return false;
        }

        $newNamespace = rand(0, 10000);
        // @codeCoverageIgnoreStart
        while ($namespace === $newNamespace) {
            $newNamespace = rand(0, 10000);
        }

        // @codeCoverageIgnoreEnd
        return $this->save($namespaceId, $namespaceId . '_' . $newNamespace .'_', 0);
    }
public function invalidate ( $ namespaceId ) { $ namespace = $ this -> fetch ( $ namespaceId ) ; if ( false === $ namespace ) { return false ; } $ newNamespace = rand ( 0 , 10000 ) ; // @codeCoverageIgnoreStart while ( $ namespace === $ newNamespace ) { $ newNamespace = rand ( 0 , 10000 ) ; } // @codeCoverageIgnoreEnd return $ this -> save ( $ namespaceId , $ namespaceId . '_' . $ newNamespace . '_' , 0 ) ; }
Invalidate a namespace.

@param string $namespaceId The id of the namespace to invalidate.

@return boolean TRUE if the namespace entry was successfully regenerated, FALSE otherwise.
Invalidate a namespace .