Completed
Push — master ( ac28ba...d1c608 )
by Adriano
05:00
created

PedidoStatus   A

Complexity

Total Complexity 5

Size/Duplication

Total Lines 61
Duplicated Lines 0 %

Coupling/Cohesion

Components 1
Dependencies 0

Importance

Changes 0
Metric Value
wmc 5
lcom 1
cbo 0
dl 0
loc 61
rs 10
c 0
b 0
f 0

5 Methods

Rating   Name   Duplication   Size   Complexity  
A getId() 0 4 1
A setId() 0 5 1
A getNome() 0 4 1
A setNome() 0 5 1
A jsonSerialize() 0 7 1
1
<?php
2
3
namespace Integracao\ControlPay\Model;
4
5
/**
6
 * Class PedidoStatus
7
 * @package Integracao\ControlPay\Model
8
 */
9
class PedidoStatus implements \JsonSerializable
10
{
11
12
    /**
13
     * @var integer
14
     */
15
    private $id;
16
17
    /**
18
     * @var string
19
     */
20
    private $nome;
21
22
    /**
23
     * @return int
24
     */
25
    public function getId()
26
    {
27
        return $this->id;
28
    }
29
30
    /**
31
     * @param int $id
32
     * @return PedidoStatus
33
     */
34
    public function setId($id)
35
    {
36
        $this->id = $id;
37
        return $this;
38
    }
39
40
    /**
41
     * @return string
42
     */
43
    public function getNome()
44
    {
45
        return $this->nome;
46
    }
47
48
    /**
49
     * @param string $nome
50
     * @return PedidoStatus
51
     */
52
    public function setNome($nome)
53
    {
54
        $this->nome = $nome;
55
        return $this;
56
    }
57
58
    /**
59
     * @return array
60
     */
61
    function jsonSerialize()
0 ignored issues
show
Best Practice introduced by
It is generally recommended to explicitly declare the visibility for methods.

Adding explicit visibility (private, protected, or public) is generally recommend to communicate to other developers how, and from where this method is intended to be used.

Loading history...
62
    {
63
        return [
64
            'id' => $this->id,
65
            'nome' => $this->nome,
66
        ];
67
    }
68
69
}