ContaPayLancamento   A
last analyzed

Complexity

Total Complexity 4

Size/Duplication

Total Lines 41
Duplicated Lines 0 %

Coupling/Cohesion

Components 1
Dependencies 0

Importance

Changes 0
Metric Value
wmc 4
lcom 1
cbo 0
dl 0
loc 41
rs 10
c 0
b 0
f 0

4 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 3 1
A getId() 0 4 1
A setId() 0 5 1
A jsonSerialize() 0 6 1
1
<?php
2
/**
3
 * Created by PhpStorm.
4
 * User: a.moreira
5
 * Date: 20/10/2016
6
 * Time: 10:48
7
 */
8
9
namespace Integracao\ControlPay\Model;
10
11
/**
12
 * Class ContaPayLancamento
13
 * @package Integracao\ControlPay\Model
14
 */
15
class ContaPayLancamento implements \JsonSerializable
16
{
17
    /**
18
     * @var integer
19
     */
20
    private $id;
21
22
    /**
23
     * ContaPayLancamento constructor.
24
     */
25
    public function __construct()
26
    {
27
    }
28
29
    /**
30
     * @return int
31
     */
32
    public function getId()
33
    {
34
        return $this->id;
35
    }
36
37
    /**
38
     * @param int $id
39
     * @return ContaPayLancamento
40
     */
41
    public function setId($id)
42
    {
43
        $this->id = $id;
44
        return $this;
45
    }
46
47
    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...
48
    {
49
        return [
50
            'id' => $this->id
51
        ];
52
    }
53
54
55
}