RussianPostPayment::setSum()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 4
rs 10
c 0
b 0
f 0
cc 1
eloc 2
nc 1
nop 1
1
<?php
2
3
namespace PimpayBundle\Model;
4
5
/**
6
 * Class RussianPostPayment
7
 * @package PimpayBundle\Model
8
 */
9
class RussianPostPayment
10
{
11
    /**
12
     * @var float
13
     */
14
    private $sum;
15
16
    /**
17
     * @var string
18
     */
19
    private $paymentDate;
20
21
    /**
22
     * @var string
23
     */
24
    private $registeredAt;
25
26
    /**
27
     * @return float
28
     */
29
    public function getSum(): float
30
    {
31
        return $this->sum;
32
    }
33
34
    /**
35
     * @param float $sum
36
     */
37
    public function setSum(float $sum)
38
    {
39
        $this->sum = $sum;
40
    }
41
42
    /**
43
     * @return string
44
     */
45
    public function getPaymentDate(): string
46
    {
47
        return $this->paymentDate;
48
    }
49
50
    /**
51
     * @param \DateTime $paymentDate
52
     */
53
    public function setPaymentDate(\DateTime $paymentDate)
54
    {
55
        $this->paymentDate = $paymentDate->format('Y-m-d');
56
    }
57
58
    /**
59
     * @return string
60
     */
61
    public function getRegisteredAt(): string
62
    {
63
        return $this->registeredAt;
64
    }
65
66
    /**
67
     * @param \DateTime $registeredAt
68
     */
69
    public function setRegisteredAt(\DateTime $registeredAt)
70
    {
71
        $this->registeredAt = $registeredAt->format('Y-m-d H:i:s');
72
    }
73
}
74