Passed
Push — master ( 826624...dee1d8 )
by Morris
16:59 queued 04:01
created

LazyRoot::rename()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 2
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
eloc 1
nc 1
nop 1
dl 0
loc 2
rs 10
c 0
b 0
f 0
1
<?php
2
/**
3
 * @copyright Copyright (c) 2016, ownCloud, Inc.
4
 *
5
 * @author Christoph Wurst <[email protected]>
6
 * @author Robin Appelman <[email protected]>
7
 * @author Roeland Jago Douma <[email protected]>
8
 *
9
 * @license AGPL-3.0
10
 *
11
 * This code is free software: you can redistribute it and/or modify
12
 * it under the terms of the GNU Affero General Public License, version 3,
13
 * as published by the Free Software Foundation.
14
 *
15
 * This program is distributed in the hope that it will be useful,
16
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
17
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18
 * GNU Affero General Public License for more details.
19
 *
20
 * You should have received a copy of the GNU Affero General Public License, version 3,
21
 * along with this program. If not, see <http://www.gnu.org/licenses/>
22
 *
23
 */
24
25
namespace OC\Files\Node;
26
27
use OCP\Files\IRootFolder;
28
29
/**
30
 * Class LazyRoot
31
 *
32
 * This is a lazy wrapper around the root. So only
33
 * once it is needed this will get initialized.
34
 *
35
 * @package OC\Files\Node
36
 */
37
class LazyRoot extends LazyFolder implements IRootFolder {
38
	/**
39
	 * @inheritDoc
40
	 */
41
	public function getUserFolder($userId) {
42
		return $this->__call(__FUNCTION__, func_get_args());
43
	}
44
}
45