Doctrine\OXM\Marshaller\XmlMarshaller::getSchemaVersion PHP Method

getSchemaVersion() public method

public getSchemaVersion ( ) : string
return string
    public function getSchemaVersion()
    {
        return $this->schemaVersion;
    }

Usage Example

Example #1
0
 private function initialize()
 {
     if ($this->streamUri !== null) {
         $this->cursor->openUri($this->streamUri);
     } else {
         $this->cursor->openMemory();
     }
     $this->cursor->startDocument($this->marshaller->getSchemaVersion(), $this->marshaller->getEncoding());
     if ($this->marshaller->getIndent() > 0) {
         $this->cursor->setIndent((int) $this->marshaller->getIndent());
     }
 }