Ocorrencia   A
last analyzed

Complexity

Total Complexity 8

Size/Duplication

Total Lines 95
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Importance

Changes 1
Bugs 0 Features 1
Metric Value
wmc 8
c 1
b 0
f 1
lcom 0
cbo 0
dl 0
loc 95
rs 10

8 Methods

Rating   Name   Duplication   Size   Complexity  
A getCod() 0 4 1
A setCod() 0 5 1
A getComplemento() 0 4 1
A setComplemento() 0 5 1
A getData() 0 4 1
A setData() 0 5 1
A getValor() 0 4 1
A setValor() 0 5 1
1
<?php
2
3
namespace Umbrella\Ya\RetornoBoleto\Model;
4
5
/**
6
 * Classe que representa um banco.
7
 */
8
class Ocorrencia
9
{
10
    /**
11
     * @var int
12
     */
13
    protected $cod;
14
15
    /**
16
     * @var \DateTime
17
     */
18
    protected $data;
19
20
    /**
21
     * @var float
22
     */
23
    protected $valor;
24
25
    /**
26
     * @var string
27
     */
28
    protected $complemento;
29
30
    /**
31
     * @return int
32
     */
33
    public function getCod()
34
    {
35
        return $this->cod;
36
    }
37
38
    /**
39
     * @param int $cod
40
     * @return $this
41
     */
42
    public function setCod($cod)
43
    {
44
        $this->cod = $cod;
45
        return $this;
46
    }
47
48
    /**
49
     * @return string
50
     */
51
    public function getComplemento()
52
    {
53
        return $this->complemento;
54
    }
55
56
    /**
57
     * @param string $complemento
58
     * @return $this
59
     */
60
    public function setComplemento($complemento)
61
    {
62
        $this->complemento = $complemento;
63
        return $this;
64
    }
65
66
    /**
67
     * @return \DateTime
68
     */
69
    public function getData()
70
    {
71
        return $this->data;
72
    }
73
74
    /**
75
     * @param \DateTime $data
76
     * @return $this
77
     */
78
    public function setData($data)
79
    {
80
        $this->data = $data;
81
        return $this;
82
    }
83
84
    /**
85
     * @return float
86
     */
87
    public function getValor()
88
    {
89
        return $this->valor;
90
    }
91
92
    /**
93
     * @param float $valor
94
     * @return $this
95
     */
96
    public function setValor($valor)
97
    {
98
        $this->valor = $valor;
99
        return $this;
100
    }
101
102
}
103