ConsultaLoginRequest::getCpfCnpj()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 4

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 4
rs 10
c 0
b 0
f 0
cc 1
nc 1
nop 0
1
<?php
2
3
namespace Integracao\ControlPay\Contracts\Login;
4
5
/**
6
 * Class ConsultaLoginRequest
7
 * @package Integracao\ControlPay\Contracts\Login
8
 */
9
class ConsultaLoginRequest implements \JsonSerializable
10
{
11
    /**
12
     * @var string
13
     */
14
    private $cpfCnpj;
15
16
    /**
17
     * @var string
18
     */
19
    private $senha;
20
21
    /**
22
     * Login constructor.
23
     */
24
    public function __construct()
25
    {
26
    }
27
28
    /**
29
     * @return string
30
     */
31
    public function getCpfCnpj()
32
    {
33
        return $this->cpfCnpj;
34
    }
35
36
    /**
37
     * @param string $cpfCnpj
38
     * @return Login
39
     */
40
    public function setCpfCnpj($cpfCnpj)
41
    {
42
        $this->cpfCnpj = $cpfCnpj;
43
        return $this;
44
    }
45
46
    /**
47
     * @return string
48
     */
49
    public function getSenha()
50
    {
51
        return $this->senha;
52
    }
53
54
    /**
55
     * @param string $senha
56
     * @return Login
57
     */
58
    public function setSenha($senha)
59
    {
60
        $this->senha = $senha;
61
        return $this;
62
    }
63
64
    /**
65
     * @return array
66
     */
67
    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...
68
    {
69
        return [
70
            'cpfCnpj' => $this->cpfCnpj,
71
            'senha' => $this->senha
72
        ];
73
    }
74
75
76
}