Completed
Push — master ( ee3472...674111 )
by Fabian
03:13
created

CancelOpenOrderResponse::manualMapping()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 3
CRAP Score 1

Importance

Changes 0
Metric Value
cc 1
eloc 2
nc 1
nop 1
dl 0
loc 4
ccs 3
cts 3
cp 1
crap 1
rs 10
c 0
b 0
f 0
1
<?php
2
3
namespace HanischIt\KrakenApi\Model\CancelOpenOrder;
4
5
use HanischIt\KrakenApi\Model\ResponseInterface;
6
7
/**
8
 * Class TradesResponse
9
 * @package HanischIt\KrakenApi\Model\Trades
10
 */
11
class CancelOpenOrderResponse implements ResponseInterface
12
{
13
    /**
14
     * @var int
15
     */
16
    private $count;
17
18
    /**
19
     * @var string
20
     */
21
    private $pending;
22
23
    /**
24
     * @param array $result
25
     */
26 1
    public function manualMapping($result)
27
    {
28 1
        $this->count = $result["count"];
29 1
        $this->pending = $result["pending"];
30 1
    }
31
32
    /**
33
     * @return int
34
     */
35 1
    public function getCount()
36
    {
37 1
        return $this->count;
38
    }
39
40
    /**
41
     * @return string
42
     */
43 1
    public function getPending()
44
    {
45 1
        return $this->pending;
46
    }
47
48
49
}
50