Passed
Push — master ( 80a2af...b754d5 )
by Fabian
51s
created

Request::__construct()   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 2
dl 0
loc 4
ccs 3
cts 3
cp 1
crap 1
rs 10
c 0
b 0
f 0
1
<?php
2
/**
3
 * @author Fabian Hanisch
4
 * @since 14.07.2017 21:04
5
 * @version 1.0
6
 */
7
8
namespace HanischIt\KrakenApi\Model;
9
10
/**
11
 * Class Request
12
 * @package HanischIt\KrakenApi\Model
13
 */
14
class Request
15
{
16
    /**
17
     * @var string
18
     */
19
    private $nonce;
20
21
    /**
22
     * @var string
23
     */
24
    private $otp;
25
26
    /**
27
     * Request constructor.
28
     * @param string $nonce
29
     * @param string $otp
30
     */
31 1
    public function __construct($nonce, $otp)
32
    {
33 1
        $this->nonce = $nonce;
34 1
        $this->otp = $otp;
35 1
    }
36
37
    /**
38
     * @return string
39
     */
40 1
    public function getNonce()
41
    {
42 1
        return $this->nonce;
43
    }
44
45
    /**
46
     * @return string
47
     */
48 1
    public function getOtp()
49
    {
50 1
        return $this->otp;
51
    }
52
}
53