IntencaoVendaStatus::__construct()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 3

Duplication

Lines 3
Ratio 100 %

Importance

Changes 0
Metric Value
dl 3
loc 3
rs 10
c 0
b 0
f 0
cc 1
nc 1
nop 0
1
<?php
2
3
namespace Integracao\ControlPay\Model;
4
5
/**
6
 * Class IntencaoVendaStatus
7
 * @package Integracao\ControlPay\Model
8
 */
9 View Code Duplication
class IntencaoVendaStatus implements \JsonSerializable
0 ignored issues
show
Duplication introduced by
This class seems to be duplicated in your project.

Duplicated code is one of the most pungent code smells. If you need to duplicate the same code in three or more different places, we strongly encourage you to look into extracting the code into a single class or operation.

You can also find more detailed suggestions in the “Code” section of your repository.

Loading history...
10
{
11
    /**
12
     * @var integer
13
     */
14
    private $id;
15
16
    /**
17
     * @var string
18
     */
19
    private $nome;
20
21
    /**
22
     * IntencaoVendaStatus constructor.
23
     */
24
    public function __construct()
25
    {
26
    }
27
28
    /**
29
     * @return int
30
     */
31
    public function getId()
32
    {
33
        return $this->id;
34
    }
35
36
    /**
37
     * @param int $id
38
     * @return IntencaoVendaStatus
39
     */
40
    public function setId($id)
41
    {
42
        $this->id = $id;
43
        return $this;
44
    }
45
46
    /**
47
     * @return string
48
     */
49
    public function getNome()
50
    {
51
        return $this->nome;
52
    }
53
54
    /**
55
     * @param string $nome
56
     * @return IntencaoVendaStatus
57
     */
58
    public function setNome($nome)
59
    {
60
        $this->nome = $nome;
61
        return $this;
62
    }
63
64
    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...
65
    {
66
        return [
67
            'id' => $this->id,
68
            'nome' => $this->nome,
69
        ];
70
    }
71
72
73
}