PhpSandbox\PHPSandbox::undefineNamespace PHP Méthode

undefineNamespace() public méthode

You can pass a string of namespace $name to undefine, or an array of namespace names to undefine
public undefineNamespace ( string | array $name )
$name string | array String of namespace $name, or an array of namespace names to undefine
    public function undefineNamespace($name)
    {
        if (is_array($name)) {
            return $this->undefineNamespaces($name);
        }
        $name = $this->normalizeNamespace($name);
        if (isset($this->definitions['namespaces'][$name])) {
            unset($this->definitions['namespaces'][$name]);
        }
        return $this;
    }
PHPSandbox