Issues (54)

src/Model/CODPayment.php (1 issue)

Labels
Severity
1
<?php
2
3
declare(strict_types=1);
4
5
namespace VasilDakov\Speedy\Model;
6
7
use DateTime;
8
use JMS\Serializer\Annotation as Serializer;
9
use VasilDakov\Speedy\Traits\ToArray;
10
11
/**
12
 * Class CODPayment.
13
 *
14
 * @Serializer\AccessType("public_method")
15
 *
16
 * @author Vasil Dakov <[email protected]>
17
 * @author Valentin Valkanov <[email protected]>
18
 * @copyright
19
 *
20
 * @version 1.0
21
 *
22
 * @psalm-suppress MissingConstructor
23
 */
24
class CODPayment
25
{
26
    use ToArray;
0 ignored issues
show
The trait VasilDakov\Speedy\Traits\ToArray requires the property $value which is not provided by VasilDakov\Speedy\Model\CODPayment.
Loading history...
27
28
    /**
29
     * @Serializer\Type("DateTime<'Y-m-d\TH:i:sP'>")
30
     */
31
    private \DateTime $date;
32
33
    /**
34
     * @Serializer\Type("float")
35
     */
36
    private float $totalPayedOutAmount;
37
38 2
    public function getDate(): \DateTime
39
    {
40 2
        return $this->date;
41
    }
42
43 5
    public function setDate(\DateTime $date): void
44
    {
45 5
        $this->date = $date;
46
    }
47
48 2
    public function getTotalPayedOutAmount(): float
49
    {
50 2
        return $this->totalPayedOutAmount;
51
    }
52
53 5
    public function setTotalPayedOutAmount(float $totalPayedOutAmount): void
54
    {
55 5
        $this->totalPayedOutAmount = $totalPayedOutAmount;
56
    }
57
}
58