public function __construct(\SimpleXMLElement $xml = null) { parent::__construct($xml); if (is_null($xml)) { return; } if (count($xml->recordingId)) { $this->recordingId = (int) $xml->recordingId; } $this->webexHostId = (string) $xml->webexHostId; $this->description = (string) $xml->description; $this->confId = (string) $xml->confId; $this->contentUrl = (string) $xml->contentUrl; }