public function AddSchema( $schema )
	{
		if ( is_null( $schema ) ) throw new \lyquidity\xml\exceptions\ArgumentNullException();
		if ( ! $schema instanceof XmlSchema ) throw new XmlSchemaException( "The parameter is not a valid XmlSchema instance" );

		$this->schemas[ $schema->getTargetNamespace() ] = $schema;
	}
public function AddSchema( $schema )
	{
		if ( is_null( $schema ) ) throw new \lyquidity\xml\exceptions\ArgumentNullException();
		if ( ! $schema instanceof XmlSchema ) throw new XmlSchemaException( "The parameter is not a valid XmlSchema instance" );

		$this->schemas[ $schema->getTargetNamespace() ] = $schema;
	}
public function AddSchema ( $ schema ) { if ( is_null ( $ schema ) ) throw new \ lyquidity \ xml \ exceptions \ ArgumentNullException ( ) ; if ( ! $ schema instanceof XmlSchema ) throw new XmlSchemaException ( "The parameter is not a valid XmlSchema instance" ) ; $ this -> schemas [ $ schema -> getTargetNamespace ( ) ] = $ schema ; }
Adds the given XmlSchema to the XmlSchemaSet.

@param XmlSchema $schema  The XmlSchema object to add to the XmlSchemaSet.
@return XmlSchema  An XmlSchema object if the schema is valid otherwise, an XmlSchemaException is thrown.
@throws
XmlSchemaException  A schema in the XmlSchemaSet is not valid.
ArgumentNullException The URL passed as a parameter is null or System.String.Empty.
Adds the given XmlSchema to the XmlSchemaSet .