public function __construct(\SimpleXMLElement $xml = null) { parent::__construct($xml); if (is_null($xml)) { return; } $this->token = (string) $xml->token; }
public function __construct(\SimpleXMLElement $xml = null) { parent::__construct($xml); if (is_null($xml)) { return; } if (count($xml->dropFolderFileId)) { $this->dropFolderFileId = (int) $xml->dropFolderFileId; } }