RetrieveReservationDetailParameters   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 17
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
eloc 9
dl 0
loc 17
rs 10
c 0
b 0
f 0
wmc 2

2 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 4 1
A getValue() 0 6 1
1
<?php
2
declare(strict_types=1);
3
4
namespace TK\API\ValueObject;
5
6
class RetrieveReservationDetailParameters implements ValueObjectInterface
7
{
8
    private $uniqueId;
9
    private $surname;
10
11
    public function __construct(string $uniqueId, string $surname)
12
    {
13
        $this->uniqueId = $uniqueId;
14
        $this->surname = $surname;
15
    }
16
17
    public function getValue() : array
18
    {
19
        return [
20
            'retrieveReservationOTARequest' => [
21
                'UniqueId' => $this->uniqueId,
22
                'Surname' => $this->surname
23
            ]
24
        ];
25
    }
26
}
27