Completed
Push — master ( 939420...ce1e21 )
by Adriano
03:21
created

CancelarVendaRequest::setReferencia()   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\Contracts\Venda;
4
5
/**
6
 * Class CancelarVendaRequest
7
 * @package Integracao\ControlPay\Contracts\Venda
8
 */
9
class CancelarVendaRequest implements \JsonSerializable
10
{
11
    /**
12
     * @var integer
13
     */
14
    private $intencaoVendaId;
15
16
    /**
17
     * @var string
18
     */
19
    private $referencia;
20
21
    /**
22
     * @var integer
23
     */
24
    private $terminalId;
25
26
    /**
27
     * @var boolean
28
     */
29
    private $aguardarTefIniciarTransacao;
30
31
    /**
32
     * @var string
33
     */
34
    private $senhaTecnica;
35
36
    /**
37
     * @return int
38
     */
39
    public function getIntencaoVendaId()
40
    {
41
        return $this->intencaoVendaId;
42
    }
43
44
    /**
45
     * @param int $intencaoVendaId
46
     * @return CancelarVendaRequest
47
     */
48
    public function setIntencaoVendaId($intencaoVendaId)
49
    {
50
        $this->intencaoVendaId = $intencaoVendaId;
51
        return $this;
52
    }
53
54
    /**
55
     * @return int
56
     */
57
    public function getTerminalId()
58
    {
59
        return $this->terminalId;
60
    }
61
62
    /**
63
     * @param int $terminalId
64
     * @return CancelarVendaRequest
65
     */
66
    public function setTerminalId($terminalId)
67
    {
68
        $this->terminalId = $terminalId;
69
        return $this;
70
    }
71
72
    /**
73
     * @return boolean
74
     */
75
    public function isAguardarTefIniciarTransacao()
76
    {
77
        return $this->aguardarTefIniciarTransacao;
78
    }
79
80
    /**
81
     * @param boolean $aguardarTefIniciarTransacao
82
     * @return CancelarVendaRequest
83
     */
84
    public function setAguardarTefIniciarTransacao($aguardarTefIniciarTransacao)
85
    {
86
        $this->aguardarTefIniciarTransacao = $aguardarTefIniciarTransacao;
87
        return $this;
88
    }
89
90
    /**
91
     * @return string
92
     */
93
    public function getSenhaTecnica()
94
    {
95
        return $this->senhaTecnica;
96
    }
97
98
    /**
99
     * @param string $senhaTecnica
100
     * @return CancelarVendaRequest
101
     */
102
    public function setSenhaTecnica($senhaTecnica)
103
    {
104
        $this->senhaTecnica = $senhaTecnica;
105
        return $this;
106
    }
107
108
    /**
109
     * @return string
110
     */
111
    public function getReferencia()
112
    {
113
        return $this->referencia;
114
    }
115
116
    /**
117
     * @param string $referencia
118
     * @return CancelarVendaRequest
119
     */
120
    public function setReferencia($referencia)
121
    {
122
        $this->referencia = $referencia;
123
        return $this;
124
    }
125
126
    /**
127
     * @return array
128
     */
129
    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...
130
    {
131
        return [
132
            'intencaoVendaId' => $this->intencaoVendaId,
133
            'terminalId' => $this->terminalId,
134
            'aguardarTefIniciarTransacao' => $this->aguardarTefIniciarTransacao,
135
            'senhaTecnica' => $this->senhaTecnica,
136
            'referencia' => $this->referencia
137
        ];
138
    }
139
140
141
}