ContaBancaria::setId()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 5

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 5
rs 10
c 0
b 0
f 0
cc 1
nc 1
nop 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
}