public function setNamespace($namespace)
    {
        if (is_string($namespace) === false) {
            $msg = "The namespace argument must be a string.";
            throw new InvalidArgumentException($msg);
        } elseif ($namespace === '') {
            $msg = "The namespace argument must be a non-empty string.";
            throw new InvalidArgumentException($msg);
        } else {
            $this->namespace = $namespace;
        }
    }
public function setNamespace($namespace)
    {
        if (is_string($namespace) === false) {
            $msg = "The namespace argument must be a string.";
            throw new InvalidArgumentException($msg);
        } elseif ($namespace === '') {
            $msg = "The namespace argument must be a non-empty string.";
            throw new InvalidArgumentException($msg);
        } else {
            $this->namespace = $namespace;
        }
    }
public function setNamespace ( $ namespace ) { if ( is_string ( $ namespace ) === false ) { $ msg = "The namespace argument must be a string." ; throw new InvalidArgumentException ( $ msg ) ; } elseif ( $ namespace === '' ) { $ msg = "The namespace argument must be a non-empty string." ; throw new InvalidArgumentException ( $ msg ) ; } else { $ this -> namespace = $ namespace ; } }
Set the XML namespace of the mapping.

@param string $namespace An XML namespace e.g. "http://www.imsglobal.org/xsd/imsmd_v1p2p2".
@throws InvalidArgumentException If $namespace is not a string or an empty string.
Set the XML namespace of the mapping .