ConsultaLoginRequest   A
last analyzed

Complexity

Total Complexity 6

Size/Duplication

Total Lines 68
Duplicated Lines 0 %

Coupling/Cohesion

Components 1
Dependencies 0

Importance

Changes 0
Metric Value
wmc 6
lcom 1
cbo 0
dl 0
loc 68
rs 10
c 0
b 0
f 0

6 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 3 1
A getCpfCnpj() 0 4 1
A setCpfCnpj() 0 5 1
A getSenha() 0 4 1
A setSenha() 0 5 1
A jsonSerialize() 0 7 1
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
}