Completed
Push — master ( b5ae25...349033 )
by Frederik
02:37
created

GroupHeader   A

Complexity

Total Complexity 3

Size/Duplication

Total Lines 37
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Test Coverage

Coverage 100%

Importance

Changes 1
Bugs 0 Features 0
Metric Value
wmc 3
c 1
b 0
f 0
lcom 0
cbo 0
dl 0
loc 37
ccs 8
cts 8
cp 1
rs 10

3 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 5 1
A getMessageId() 0 4 1
A getCreatedOn() 0 4 1
1
<?php
2
3
namespace Genkgo\Camt\DTO;
4
5
/**
6
 * Class GroupHeader
7
 * @package Genkgo\Camt\DTO
8
 */
9
class GroupHeader
10
{
11
    /**
12
     * @var string
13
     */
14
    private $messageId;
15
    /**
16
     * @var \DateTimeImmutable
17
     */
18
    private $createdOn;
19
20
    /**
21
     * @param $messageId
22
     * @param \DateTimeImmutable $createdOn
23
     */
24 15
    public function __construct($messageId, \DateTimeImmutable $createdOn)
25
    {
26 15
        $this->messageId = $messageId;
27 15
        $this->createdOn = $createdOn;
28 15
    }
29
30
    /**
31
     * @return string
32
     */
33 2
    public function getMessageId()
34
    {
35 2
        return $this->messageId;
36
    }
37
38
    /**
39
     * @return \DateTimeImmutable
40
     */
41 2
    public function getCreatedOn()
42
    {
43 2
        return $this->createdOn;
44
    }
45
}
46