Response::__construct()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
eloc 2
nc 1
nop 2
dl 0
loc 4
rs 10
c 0
b 0
f 0
1
<?php
2
3
namespace Orkhanahmadov\Goldenpay\Response;
4
5
abstract class Response
6
{
7
    /**
8
     * @var int|null
9
     */
10
    protected $code = null;
11
    /**
12
     * @var string|null
13
     */
14
    protected $message = null;
15
16
    /**
17
     * Response constructor.
18
     *
19
     * @param int|null    $code
20
     * @param string|null $message
21
     */
22
    public function __construct(?int $code, ?string $message)
23
    {
24
        $this->code = $code;
25
        $this->message = $message;
26
    }
27
28
    /**
29
     * @return int|null
30
     */
31
    public function getCode(): ?int
32
    {
33
        return $this->code;
34
    }
35
36
    /**
37
     * @return string|null
38
     */
39
    public function getMessage(): ?string
40
    {
41
        return $this->message;
42
    }
43
}
44