InsuranceDTO::__construct()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 8
Code Lines 6

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 8
rs 9.4285
c 0
b 0
f 0
cc 1
eloc 6
nc 1
nop 5
1
<?php
2
/**
3
 * Created by PhpStorm.
4
 * User: marek
5
 * Date: 10.12.15
6
 * Time: 10:13.
7
 */
8
namespace Madkom\RegistryApplication\Application\CarManagement;
9
10
class InsuranceDTO
11
{
12
    /** @var string */
13
    public $insuranceId;
14
15
    /** @var string */
16
    public $insurerId;
17
18
    /** @var \DateTime */
19
    public $dateFrom;
20
21
    /** @var \DateTime */
22
    public $dateTo;
23
24
    /** @var string */
25
    public $type;
26
27
    /**
28
     * InsuranceDTO constructor.
29
     *
30
     * @param string    $insurerId
31
     * @param \DateTime $dateFrom
32
     * @param \DateTime $dateTo
33
     * @param string    $type
34
     */
35
    public function __construct($insuranceId, $type, $dateFrom, $dateTo, $insurerId)
36
    {
37
        $this->insurerId = $insurerId;
38
        $this->dateFrom = $dateFrom;
39
        $this->dateTo = $dateTo;
40
        $this->type = $type;
41
        $this->insuranceId = $insuranceId;
42
    }
43
}
44