next(); * * $reader->parseInnerTree() will parse the entire sub-tree, and advance to * the next element. * * @param Reader $reader * @return mixed */ static function xmlDeserialize(Reader $reader) { $reader->pushContext(); $reader->elementMap['{DAV:}owner'] = 'Sabre\\Xml\\Element\\XmlFragment'; $values = KeyValue::xmlDeserialize($reader); $reader->popContext(); $new = new self(); $new->owner = !empty($values['{DAV:}owner']) ? $values['{DAV:}owner']->getXml() : null; $new->scope = LockInfo::SHARED; if (isset($values['{DAV:}lockscope'])) { foreach ($values['{DAV:}lockscope'] as $elem) { if ($elem['name'] === '{DAV:}exclusive') $new->scope = LockInfo::EXCLUSIVE; } } return $new; } }