PaymentOrder   A
last analyzed

Complexity

Total Complexity 6

Size/Duplication

Total Lines 74
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Importance

Changes 0
Metric Value
wmc 6
lcom 0
cbo 0
dl 0
loc 74
rs 10
c 0
b 0
f 0

6 Methods

Rating   Name   Duplication   Size   Complexity  
A getNum() 0 4 1
A setNum() 0 6 1
A getDate() 0 4 1
A setDate() 0 6 1
A getSum() 0 4 1
A setSum() 0 6 1
1
<?php
2
3
namespace PimpayBundle\Model;
4
5
/**
6
 * Class PaymentOrder
7
 * @package PimpayBundle\Model
8
 */
9
class PaymentOrder
10
{
11
    /**
12
     * @var integer
13
     */
14
    private $num;
15
16
    /**
17
     * @var string
18
     */
19
    private $date;
20
21
    /**
22
     * @var float
23
     */
24
    private $sum;
25
26
    /**
27
     * @return int
28
     */
29
    public function getNum(): int
30
    {
31
        return $this->num;
32
    }
33
34
    /**
35
     * @param int $num
36
     * @return $this
37
     */
38
    public function setNum(int $num)
39
    {
40
        $this->num = $num;
41
42
        return $this;
43
    }
44
45
    /**
46
     * @return string
47
     */
48
    public function getDate(): string
49
    {
50
        return $this->date;
51
    }
52
53
    /**
54
     * @param \DateTime $date
55
     * @return $this
56
     */
57
    public function setDate(\DateTime $date)
58
    {
59
        $this->date = $date->format('Y-m-d');
60
61
        return $this;
62
    }
63
64
    /**
65
     * @return float
66
     */
67
    public function getSum(): float
68
    {
69
        return $this->sum;
70
    }
71
72
    /**
73
     * @param float $sum
74
     * @return $this
75
     */
76
    public function setSum(float $sum)
77
    {
78
        $this->sum = $sum;
79
80
        return $this;
81
    }
82
}
83