CallbackResponse   A
last analyzed

Complexity

Total Complexity 3

Size/Duplication

Total Lines 36
Duplicated Lines 0 %

Importance

Changes 1
Bugs 0 Features 1
Metric Value
eloc 7
c 1
b 0
f 1
dl 0
loc 36
rs 10
wmc 3

3 Methods

Rating   Name   Duplication   Size   Complexity  
A getMessage() 0 3 1
A __construct() 0 4 1
A getStatus() 0 3 1
1
<?php
2
3
namespace Getloy\GetloyMagentoGateway\Model;
4
5
use Getloy\GetloyMagentoGateway\Api\Data\CallbackResponseInterface;
6
7
class CallbackResponse implements CallbackResponseInterface
8
{
9
    /**
10
     * @var string
11
     */
12
    protected $status;
13
14
    /**
15
     * @var string
16
     */
17
    protected $message;
18
19
    /**
20
     * @param string $status
21
     * @param string $message
22
     */
23
    public function __construct($status, $message)
24
    {
25
        $this->status = $status;
26
        $this->message = $message;
27
    }
28
29
    /**
30
     * {@inheritDoc}
31
     */
32
    public function getStatus()
33
    {
34
        return $this->status;
35
    }
36
37
    /**
38
     * {@inheritDoc}
39
     */
40
    public function getMessage()
41
    {
42
        return $this->message;
43
    }
44
}
45