src/Common/Internal/Atom/Person.php
public function parseXml($xmlString)
    {
        $personXml = simplexml_load_string($xmlString);
        $personArray = (array) $personXml;

        if (array_key_exists('name', $personArray)) {
            $this->name = (string) $personArray['name'];
        }

        if (array_key_exists('uri', $personArray)) {
            $this->uri = (string) $personArray['uri'];
        }

        if (array_key_exists('email', $personArray)) {
            $this->email = (string) $personArray['email'];
        }
    }
public function parseXml($xmlString)
    {
        $personXml = simplexml_load_string($xmlString);
        $personArray = (array) $personXml;

        if (array_key_exists('name', $personArray)) {
            $this->name = (string) $personArray['name'];
        }

        if (array_key_exists('uri', $personArray)) {
            $this->uri = (string) $personArray['uri'];
        }

        if (array_key_exists('email', $personArray)) {
            $this->email = (string) $personArray['email'];
        }
    }
public function parseXml ( $ xmlString ) { $ personXml = simplexml_load_string ( $ xmlString ) ; $ personArray = ( array ) $ personXml ; if ( array_key_exists ( 'name' , $ personArray ) ) { $ this -> name = ( string ) $ personArray [ 'name' ] ; } if ( array_key_exists ( 'uri' , $ personArray ) ) { $ this -> uri = ( string ) $ personArray [ 'uri' ] ; } if ( array_key_exists ( 'email' , $ personArray ) ) { $ this -> email = ( string ) $ personArray [ 'email' ] ; } }
Populates the properties with a specified XML string.

@param string $xmlString An XML based string representing
the Person instance
Populates the properties with a specified XML string .