ContaBancaria   A
last analyzed

Complexity

Total Complexity 4

Size/Duplication

Total Lines 38
Duplicated Lines 0 %

Coupling/Cohesion

Components 1
Dependencies 0

Importance

Changes 0
Metric Value
wmc 4
lcom 1
cbo 0
dl 0
loc 38
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:51
7
 */
8
9
namespace Integracao\ControlPay\Model;
10
11
/**
12
 * Class ContaBancaria
13
 * @package Integracao\ControlPay\Model
14
 */
15
class ContaBancaria implements \JsonSerializable
16
{
17
    private $id;
18
19
    /**
20
     * ContaBancaria constructor.
21
     */
22
    public function __construct()
23
    {
24
    }
25
26
    /**
27
     * @return mixed
28
     */
29
    public function getId()
30
    {
31
        return $this->id;
32
    }
33
34
    /**
35
     * @param mixed $id
36
     * @return ContaBancaria
37
     */
38
    public function setId($id)
39
    {
40
        $this->id = $id;
41
        return $this;
42
    }
43
44
    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...
45
    {
46
        return [
47
            'id' => $this->id
48
        ];
49
    }
50
51
52
}