Credits::parseResult()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 3

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 3
rs 10
c 0
b 0
f 0
cc 1
nc 1
nop 2
1
<?php
2
/**
3
 * @author Threema GmbH
4
 * @copyright Copyright (c) 2015-2016 Threema GmbH
5
 */
6
7
8
namespace Threema\MsgApi\Commands;
9
10
use Threema\MsgApi\Commands\CommandInterface;
11
use Threema\MsgApi\Commands\Results\CreditsResult;
12
13
class Credits implements CommandInterface {
14
	/**
15
	 * @return array
16
	 */
17
	public function getParams() {
18
		return array();
19
	}
20
21
	public function getPath() {
22
		return 'credits';
23
	}
24
25
	/**
26
	 * @param int $httpCode
27
	 * @param object $res
28
	 * @return CreditsResult
29
	 */
30
	public function parseResult($httpCode, $res){
31
		return new CreditsResult($httpCode, $res);
32
	}
33
}
34