ReservationView   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 21
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Importance

Changes 1
Bugs 0 Features 0
Metric Value
wmc 1
c 1
b 0
f 0
lcom 0
cbo 0
dl 0
loc 21
rs 10

1 Method

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 6 1
1
<?php
2
3
namespace Clearcode\EHLibrary\Application\Projection;
4
5
final class ReservationView
6
{
7
    /** @var string */
8
    public $reservationId;
9
    /** @var string */
10
    public $email;
11
    /** @var string */
12
    public $givenAwayAt;
13
14
    /**
15
     * @param string $reservationId
16
     * @param string $email
17
     * @param string $givenAwayAt
18
     */
19
    public function __construct($reservationId, $email, $givenAwayAt)
20
    {
21
        $this->reservationId = $reservationId;
22
        $this->email         = $email;
23
        $this->givenAwayAt   = $givenAwayAt;
24
    }
25
}
26