Completed
Pull Request — master (#111)
by Maxence
06:11 queued 02:55
created

FileSharingBroadcaster::createShareToCircle()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 3
rs 10
c 0
b 0
f 0
cc 1
eloc 2
nc 1
nop 2
1
<?php
2
/**
3
 * Circles - Bring cloud-users closer together.
4
 *
5
 * This file is licensed under the Affero General Public License version 3 or
6
 * later. See the COPYING file.
7
 *
8
 * @author Maxence Lange <[email protected]>
9
 * @copyright 2017
10
 * @license GNU AGPL version 3 or any later version
11
 *
12
 * This program is free software: you can redistribute it and/or modify
13
 * it under the terms of the GNU Affero General Public License as
14
 * published by the Free Software Foundation, either version 3 of the
15
 * License, or (at your option) any later version.
16
 *
17
 * This program is distributed in the hope that it will be useful,
18
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
19
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
20
 * GNU Affero General Public License for more details.
21
 *
22
 * You should have received a copy of the GNU Affero General Public License
23
 * along with this program.  If not, see <http://www.gnu.org/licenses/>.
24
 *
25
 */
26
27
28
namespace OCA\Circles\Circles;
29
30
use OCA\Circles\IBroadcaster;
31
use OCA\Circles\Model\Circle;
32
use OCA\Circles\Model\Member;
33
use OCA\Circles\Model\SharingFrame;
34
35
36
class FileSharingBroadcaster implements IBroadcaster {
37
38
39
	/**
40
	 * {@inheritdoc}
41
	 */
42
	public function init() {
43
	}
44
45
46
	/**
47
	 * {@inheritdoc}
48
	 */
49
	public function end() {
50
	}
51
52
53
	/**
54
	 * {@inheritdoc}
55
	 */
56
	public function createShareToMember(SharingFrame $frame, Member $member) {
57
		\OC::$server->getLogger()->log(2, 'Share to Member');
58
		return true;
59
	}
60
61
62
	/**
63
	 * {@inheritdoc}
64
	 */
65
	public function deleteShareToMember(SharingFrame $frame, Member $member) {
66
		return true;
67
	}
68
69
70
	/**
71
	 * {@inheritdoc}
72
	 */
73
	public function editShareToMember(SharingFrame $frame, Member $member) {
74
		return true;
75
	}
76
77
78
	/**
79
	 * {@inheritdoc}
80
	 */
81
	public function createShareToCircle(SharingFrame $frame, Circle $circle) {
82
		return true;
83
	}
84
85
86
	/**
87
	 * {@inheritdoc}
88
	 */
89
	public function deleteShareToCircle(SharingFrame $frame, Circle $circle) {
90
		return true;
91
	}
92
93
94
	/**
95
	 * {@inheritdoc}
96
	 */
97
	public function editShareToCircle(SharingFrame $frame, Circle $circle) {
98
		return true;
99
	}
100
}