Passed
Push — master ( ab9207...b291d9 )
by Morris
10:44 queued 11s
created

serialize()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 2
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
cc 1
eloc 1
nc 1
nop 2
dl 0
loc 2
rs 10
c 1
b 0
f 0
1
<?php
2
3
/**
4
 * @copyright Copyright (c) 2019 Georg Ehrke
5
 *
6
 * @author Georg Ehrke <[email protected]>
7
 *
8
 * @license AGPL-3.0
9
 *
10
 * This code is free software: you can redistribute it and/or modify
11
 * it under the terms of the GNU Affero General Public License, version 3,
12
 * as published by the Free Software Foundation.
13
 *
14
 * This program is distributed in the hope that it will be useful,
15
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
16
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17
 * GNU Affero General Public License for more details.
18
 *
19
 * You should have received a copy of the GNU Affero General Public License, version 3,
20
 * along with this program.  If not, see <http://www.gnu.org/licenses/>
21
 *
22
 */
23
namespace OCA\DAV\Exception;
24
25
use Sabre\DAV\Exception\InsufficientStorage;
26
use Sabre\DAV\Server;
27
28
/**
29
 * Class UnsupportedLimitOnInitialSyncException
30
 *
31
 * @package OCA\DAV\Exception
32
 */
33
class UnsupportedLimitOnInitialSyncException extends InsufficientStorage {
34
35
	/**
36
	 * @inheritDoc
37
	 */
38
	public function serialize(Server $server, \DOMElement $errorNode) {
39
		$errorNode->appendChild($errorNode->ownerDocument->createElementNS('DAV:', 'd:number-of-matches-within-limits'));
40
	}
41
}
42