Completed
Push — master ( c7d566...e2979b )
by Maxence
03:33 queued 01:09
created

LoopbackTest::result()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

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