src/Common/Internal/Atom/Generator.php
public function parseXml($xmlString)
    {
        $generatorXml = new \SimpleXMLElement($xmlString);
        $attributes = $generatorXml->attributes();
        if (!empty($attributes['uri'])) {
            $this->uri = (string) $attributes['uri'];
        }

        if (!empty($attributes['version'])) {
            $this->version = (string) $attributes['version'];
        }

        $this->text = (string) $generatorXml;
    }
public function parseXml($xmlString)
    {
        $generatorXml = new \SimpleXMLElement($xmlString);
        $attributes = $generatorXml->attributes();
        if (!empty($attributes['uri'])) {
            $this->uri = (string) $attributes['uri'];
        }

        if (!empty($attributes['version'])) {
            $this->version = (string) $attributes['version'];
        }

        $this->text = (string) $generatorXml;
    }
public function parseXml ( $ xmlString ) { $ generatorXml = new \ SimpleXMLElement ( $ xmlString ) ; $ attributes = $ generatorXml -> attributes ( ) ; if ( ! empty ( $ attributes [ 'uri' ] ) ) { $ this -> uri = ( string ) $ attributes [ 'uri' ] ; } if ( ! empty ( $ attributes [ 'version' ] ) ) { $ this -> version = ( string ) $ attributes [ 'version' ] ; } $ this -> text = ( string ) $ generatorXml ; }
Creates a generator instance with specified XML string.

@param string $xmlString A string representing a generator
instance
Creates a generator instance with specified XML string .