protected function parseLockRequest($body)
    {
        $result = $this->server->xml->expect(
            '{DAV:}lockinfo',
            $body
        );

        $lockInfo = new LockInfo();

        $lockInfo->owner = $result->owner;
        $lockInfo->token = DAV\UUIDUtil::getUUID();
        $lockInfo->scope = $result->scope;

        return $lockInfo;
    }
protected function parseLockRequest($body)
    {
        $result = $this->server->xml->expect(
            '{DAV:}lockinfo',
            $body
        );

        $lockInfo = new LockInfo();

        $lockInfo->owner = $result->owner;
        $lockInfo->token = DAV\UUIDUtil::getUUID();
        $lockInfo->scope = $result->scope;

        return $lockInfo;
    }
protected function parseLockRequest ( $ body ) { $ result = $ this -> server -> xml -> expect ( '{DAV:}lockinfo' , $ body ) ; $ lockInfo = new LockInfo ( ) ; $ lockInfo -> owner = $ result -> owner ; $ lockInfo -> token = DAV \ UUIDUtil :: getUUID ( ) ; $ lockInfo -> scope = $ result -> scope ; return $ lockInfo ; }
Parses a webdav lock xml body, and returns a new Sabre\DAV\Locks\LockInfo object.

@param string $body

@return LockInfo
Parses a webdav lock xml body and returns a new Sabre \ DAV \ Locks \ LockInfo object .