CustomTransaction   A
last analyzed

Complexity

Total Complexity 4

Size/Duplication

Total Lines 44
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Importance

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

4 Methods

Rating   Name   Duplication   Size   Complexity  
A getVal() 0 4 1
A setVal() 0 4 1
A getCmt() 0 4 1
A setCmt() 0 4 1
1
<?php
2
3
namespace PimpayBundle\Model;
4
5
/**
6
 * Class CustomTransaction
7
 * @package PimpayBundle\Model
8
 */
9
class CustomTransaction
10
{
11
    /**
12
     * @var float
13
     */
14
    private $val;
15
16
    /**
17
     * @var string
18
     */
19
    private $cmt;
20
21
    /**
22
     * @return float
23
     */
24
    public function getVal(): float
25
    {
26
        return $this->val;
27
    }
28
29
    /**
30
     * @param float $val
31
     */
32
    public function setVal(float $val)
33
    {
34
        $this->val = $val;
35
    }
36
37
    /**
38
     * @return string
39
     */
40
    public function getCmt(): string
41
    {
42
        return $this->cmt;
43
    }
44
45
    /**
46
     * @param string $cmt
47
     */
48
    public function setCmt(string $cmt)
49
    {
50
        $this->cmt = $cmt;
51
    }
52
}
53