public function __construct(\SimpleXMLElement $xml = null) { parent::__construct($xml); if (is_null($xml)) { return; } $this->referrer = (string) $xml->referrer; }
public function __construct(\SimpleXMLElement $xml = null) { parent::__construct($xml); if (is_null($xml)) { return; } if (!empty($xml->city)) { $this->city = \Kaltura\Client\ParseUtils::unmarshalObject($xml->city, "KalturaCoordinate"); } if (!empty($xml->country)) { $this->country = \Kaltura\Client\ParseUtils::unmarshalObject($xml->country, "KalturaCoordinate"); } }