private function registerSchema(stdClass $schema, Uri $uri)
    {
        if (!isset($this->schemas[$uri->getPrimaryResourceIdentifier()])) {
            $this->schemas[$uri->getPrimaryResourceIdentifier()] = $schema;
        }
    }
private function registerSchema(stdClass $schema, Uri $uri)
    {
        if (!isset($this->schemas[$uri->getPrimaryResourceIdentifier()])) {
            $this->schemas[$uri->getPrimaryResourceIdentifier()] = $schema;
        }
    }
private function registerSchema ( stdClass $ schema , Uri $ uri ) { if ( ! isset ( $ this -> schemas [ $ uri -> getPrimaryResourceIdentifier ( ) ] ) ) { $ this -> schemas [ $ uri -> getPrimaryResourceIdentifier ( ) ] = $ schema ; } }
Caches a schema reference for future use.

@param stdClass $schema
@param Uri      $uri
Caches a schema reference for future use .