next(); * * $reader->parseInnerTree() will parse the entire sub-tree, and advance to * the next element. * * @return mixed */ public 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 ('{DAV:}exclusive' === $elem['name']) { $new->scope = LockInfo::EXCLUSIVE; } } } return $new; } }