GetByFiltrosRequest::getStatus()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 4

Duplication

Lines 4
Ratio 100 %

Importance

Changes 0
Metric Value
dl 4
loc 4
rs 10
c 0
b 0
f 0
cc 1
nc 1
nop 0
1
<?php
2
3
namespace Integracao\ControlPay\Contracts\IntencaoVenda;
4
5
/**
6
 * Class GetByFiltrosRequest
7
 * @package Integracao\ControlPay\Contracts\Venda
8
 */
9 View Code Duplication
class GetByFiltrosRequest 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 $intencaoVendaId;
15
16
    /**
17
     * @var integer
18
     */
19
    private $formaPagamentoId;
20
21
    /**
22
     * @var integer
23
     */
24
    private $terminalId;
25
26
    /**
27
     * @var integer
28
     */
29
    private $status;
30
31
    /**
32
     * @var integer
33
     */
34
    private $vendasDia;
35
36
    /**
37
     * @var string
38
     */
39
    private $referencia;
40
41
    /**
42
     * GetByFiltrosRequest constructor.
43
     */
44
    public function __construct()
45
    {
46
    }
47
48
    /**
49
     * @return int
50
     */
51
    public function getIntencaoVendaId()
52
    {
53
        return $this->intencaoVendaId;
54
    }
55
56
    /**
57
     * @param int $intencaoVendaId
58
     * @return GetByFiltrosRequest
59
     */
60
    public function setIntencaoVendaId($intencaoVendaId)
61
    {
62
        $this->intencaoVendaId = $intencaoVendaId;
63
        return $this;
64
    }
65
66
    /**
67
     * @return int
68
     */
69
    public function getFormaPagamentoId()
70
    {
71
        return $this->formaPagamentoId;
72
    }
73
74
    /**
75
     * @param int $formaPagamentoId
76
     * @return GetByFiltrosRequest
77
     */
78
    public function setFormaPagamentoId($formaPagamentoId)
79
    {
80
        $this->formaPagamentoId = $formaPagamentoId;
81
        return $this;
82
    }
83
84
    /**
85
     * @return int
86
     */
87
    public function getTerminalId()
88
    {
89
        return $this->terminalId;
90
    }
91
92
    /**
93
     * @param int $terminalId
94
     * @return GetByFiltrosRequest
95
     */
96
    public function setTerminalId($terminalId)
97
    {
98
        $this->terminalId = $terminalId;
99
        return $this;
100
    }
101
102
    /**
103
     * @return int
104
     */
105
    public function getStatus()
106
    {
107
        return $this->status;
108
    }
109
110
    /**
111
     * @param int $status
112
     * @return GetByFiltrosRequest
113
     */
114
    public function setStatus($status)
115
    {
116
        $this->status = $status;
117
        return $this;
118
    }
119
120
    /**
121
     * @return int
122
     */
123
    public function getVendasDia()
124
    {
125
        return $this->vendasDia;
126
    }
127
128
    /**
129
     * @param int $vendasDia
130
     * @return GetByFiltrosRequest
131
     */
132
    public function setVendasDia($vendasDia)
133
    {
134
        $this->vendasDia = $vendasDia;
135
        return $this;
136
    }
137
138
    /**
139
     * @return string
140
     */
141
    public function getReferencia()
142
    {
143
        return $this->referencia;
144
    }
145
146
    /**
147
     * @param string $referencia
148
     * @return GetByFiltrosRequest
149
     */
150
    public function setReferencia($referencia)
151
    {
152
        $this->referencia = $referencia;
153
        return $this;
154
    }
155
156
    /**
157
     * @return array
158
     */
159
    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...
160
    {
161
        return [
162
            "intencaoVendaId" => $this->intencaoVendaId,
163
            "formaPagamentoId" => $this->formaPagamentoId,
164
            "terminalId" => $this->terminalId,
165
            "status" => $this->status,
166
            "vendasDia" => $this->vendasDia,
167
            "referencia" => $this->referencia,
168
        ];
169
    }
170
171
172
}