InsuranceDTO   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 34
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Importance

Changes 0
Metric Value
wmc 1
lcom 0
cbo 0
dl 0
loc 34
rs 10
c 0
b 0
f 0

1 Method

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 8 1
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