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

PedidoStatus::setNome()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 5
Code Lines 3

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 5
rs 9.4285
c 0
b 0
f 0
cc 1
eloc 3
nc 1
nop 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
}