public function HasNamespace($namespace, $header="")
    {
        if($header)
        {
            if(isset($this->headers[$header]->namespaces[$namespace]))
            {
                return $this->headers[$header]->namespaces[$namespace];
            }
        }
        else
        {
            foreach($this->headers as $header_object)
            {
                if(isset($header_object->namespaces[$namespace]))
                {
                    return $header_object->namespaces[$namespace];
                }
            }
        }
        
        return null;
    }
public function HasNamespace($namespace, $header="")
    {
        if($header)
        {
            if(isset($this->headers[$header]->namespaces[$namespace]))
            {
                return $this->headers[$header]->namespaces[$namespace];
            }
        }
        else
        {
            foreach($this->headers as $header_object)
            {
                if(isset($header_object->namespaces[$namespace]))
                {
                    return $header_object->namespaces[$namespace];
                }
            }
        }
        
        return null;
    }
public function HasNamespace ( $ namespace , $ header = "" ) { if ( $ header ) { if ( isset ( $ this -> headers [ $ header ] -> namespaces [ $ namespace ] ) ) { return $ this -> headers [ $ header ] -> namespaces [ $ namespace ] ; } } else { foreach ( $ this -> headers as $ header_object ) { if ( isset ( $ header_object -> namespaces [ $ namespace ] ) ) { return $ header_object -> namespaces [ $ namespace ] ; } } } return null ; }
Check if the symbols object has a given namespace.
@param string $namespace
@param string $header A specific header to search in.
@return \Peg\Lib\Definitions\Element\NamespaceElement or null if nothing found.
Check if the symbols object has a given namespace .