Completed
Push — master ( 453ca0...72d566 )
by Maxence
17s queued 11s
created

Test   A

Complexity

Total Complexity 3

Size/Duplication

Total Lines 27
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 3

Importance

Changes 0
Metric Value
wmc 3
lcom 0
cbo 3
dl 0
loc 27
rs 10
c 0
b 0
f 0

3 Methods

Rating   Name   Duplication   Size   Complexity  
A verify() 0 2 1
A manage() 0 3 1
A result() 0 2 1
1
<?php declare(strict_types=1);
2
3
4
/**
5
 * Circles - Bring cloud-users closer together.
6
 *
7
 * This file is licensed under the Affero General Public License version 3 or
8
 * later. See the COPYING file.
9
 *
10
 * @author Maxence Lange <[email protected]>
11
 * @copyright 2017
12
 * @license GNU AGPL version 3 or any later version
13
 *
14
 * This program is free software: you can redistribute it and/or modify
15
 * it under the terms of the GNU Affero General Public License as
16
 * published by the Free Software Foundation, either version 3 of the
17
 * License, or (at your option) any later version.
18
 *
19
 * This program is distributed in the hope that it will be useful,
20
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
21
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
22
 * GNU Affero General Public License for more details.
23
 *
24
 * You should have received a copy of the GNU Affero General Public License
25
 * along with this program.  If not, see <http://www.gnu.org/licenses/>.
26
 *
27
 */
28
29
30
namespace OCA\Circles\GlobalScale;
31
32
33
use daita\MySmallPhpTools\Model\SimpleDataStore;
34
use OCA\Circles\Model\GlobalScale\GSEvent;
35
36
37
/**
38
 * Class Test
39
 *
40
 * @package OCA\Circles\GlobalScale
41
 */
42
class Test extends AGlobalScaleEvent {
43
44
45
	/**
46
	 * @param GSEvent $event
47
	 * @param bool $localCheck
48
	 * @param bool $mustBeChecked
49
	 */
50
	public function verify(GSEvent $event, bool $localCheck = false, bool $mustBeChecked = false): void {
51
	}
52
53
54
	/**
55
	 * @param GSEvent $event
56
	 */
57
	public function manage(GSEvent $event): void {
58
		$event->setResult(new SimpleDataStore(['status' => 1]));
59
	}
60
61
62
	/**
63
	 * @param GSEvent[] $events
64
	 */
65
	public function result(array $events): void {
66
	}
67
68
}
69
70