Completed
Push — master ( 80b27f...d0ec0c )
by Morris
50:16 queued 34:06
created

Collection::getChildForPrincipal()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
eloc 2
nc 1
nop 1
dl 0
loc 3
rs 10
c 0
b 0
f 0
1
<?php
2
3
/**
4
 * @copyright Copyright (c) 2017, Christoph Seitz <[email protected]>
5
 *
6
 * @author Christoph Seitz <[email protected]>
7
 *
8
 * @license GNU AGPL version 3 or any later version
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
24
namespace OCA\DAV\CalDAV\Principal;
25
26
use OCA\DAV\CalDAV\Principal\User;
27
28
/**
29
 * Class Collection
30
 *
31
 * @package OCA\DAV\CalDAV\Principal
32
 */
33
class Collection extends \Sabre\CalDAV\Principal\Collection {
34
35
	/**
36
	 * Returns a child object based on principal information
37
	 *
38
	 * @param array $principalInfo
39
	 * @return User
40
	 */
41
	function getChildForPrincipal(array $principalInfo) {
0 ignored issues
show
Best Practice introduced by
It is generally recommended to explicitly declare the visibility for methods.

Adding explicit visibility (private, protected, or public) is generally recommend to communicate to other developers how, and from where this method is intended to be used.

Loading history...
42
		return new User($this->principalBackend, $principalInfo);
43
	}
44
45
}
46