public function __construct(SimpleXMLElement $xml = null) { parent::__construct($xml); if (is_null($xml)) { return; } }
public function __construct(SimpleXMLElement $xml = null) { parent::__construct($xml); if (is_null($xml)) { return; } $this->webexUserId = (string) $xml->webexUserId; $this->webexPassword = (string) $xml->webexPassword; if (count($xml->webexSiteId)) { $this->webexSiteId = (int) $xml->webexSiteId; } $this->webexPartnerId = (string) $xml->webexPartnerId; $this->webexServiceUrl = (string) $xml->webexServiceUrl; $this->webexHostIdMetadataFieldName = (string) $xml->webexHostIdMetadataFieldName; $this->categoriesMetadataFieldName = (string) $xml->categoriesMetadataFieldName; if (!empty($xml->enforceEntitlement)) { $this->enforceEntitlement = true; } }