src/Adapter/FileCache.php
public function withNameSpace($namespace)
    {
        $namespace = (string) $namespace;

        if (! isset(static::$namespaces[$namespace])) {
            $new = clone $this;
            $new->setNamespace($namespace);
            $new->setEnabled($this->enabled);
            static::$namespaces[$namespace] = $new;
        }

        return static::$namespaces[$namespace];
    }
public function withNameSpace($namespace)
    {
        $namespace = (string) $namespace;

        if (! isset(static::$namespaces[$namespace])) {
            $new = clone $this;
            $new->setNamespace($namespace);
            $new->setEnabled($this->enabled);
            static::$namespaces[$namespace] = $new;
        }

        return static::$namespaces[$namespace];
    }
public function withNameSpace ( $ namespace ) { $ namespace = ( string ) $ namespace ; if ( ! isset ( static :: $ namespaces [ $ namespace ] ) ) { $ new = clone $ this ; $ new -> setNamespace ( $ namespace ) ; $ new -> setEnabled ( $ this -> enabled ) ; static :: $ namespaces [ $ namespace ] = $ new ; } return static :: $ namespaces [ $ namespace ] ; }
Returns the instance with specified namespace.

@param string $namespace The namespace

@return self The new instance with specified namespace
Returns the instance with specified namespace .