ResultCallback   A
last analyzed

Complexity

Total Complexity 9

Size/Duplication

Total Lines 91
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Importance

Changes 1
Bugs 0 Features 0
Metric Value
wmc 9
c 1
b 0
f 0
lcom 0
cbo 0
dl 0
loc 91
rs 10

9 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 4 1
A getMessageId() 0 4 1
A setMessageId() 0 4 1
A isSuccess() 0 4 1
A setSuccess() 0 4 1
A getPrice() 0 4 1
A setPrice() 0 4 1
A getData() 0 4 1
A setData() 0 4 1
1
<?php
2
3
namespace DoS\SMSBundle\SMS;
4
5
class ResultCallback
6
{
7
    /**
8
     * @var string
9
     */
10
    protected $id;
11
12
    /**
13
     * @var bool
14
     */
15
    protected $success = false;
16
17
    /**
18
     * @var int
19
     */
20
    protected $price;
21
22
    /**
23
     * @var array
24
     */
25
    protected $data = array();
26
27
    public function __construct(array $data = array())
28
    {
29
        $this->data = $data;
30
    }
31
32
    /**
33
     * {@inheritdoc}
34
     */
35
    public function getMessageId()
36
    {
37
        return $this->id;
38
    }
39
40
    /**
41
     * {@inheritdoc}
42
     */
43
    public function setMessageId($id)
44
    {
45
        $this->id = $id;
46
    }
47
48
    /**
49
     * {@inheritdoc}
50
     */
51
    public function isSuccess()
52
    {
53
        return $this->success;
54
    }
55
56
    /**
57
     * {@inheritdoc}
58
     */
59
    public function setSuccess($success)
60
    {
61
        $this->success = $success;
62
    }
63
64
    /**
65
     * @return int
66
     */
67
    public function getPrice()
68
    {
69
        return $this->price;
70
    }
71
72
    /**
73
     * @param int $price
74
     */
75
    public function setPrice($price)
76
    {
77
        $this->price = $price;
78
    }
79
80
    /**
81
     * {@inheritdoc}
82
     */
83
    public function getData()
84
    {
85
        return $this->data;
86
    }
87
88
    /**
89
     * {@inheritdoc}
90
     */
91
    public function setData(array $data)
92
    {
93
        $this->data = $data;
94
    }
95
}
96