Passed
Push — main ( 5489db...717dd1 )
by Vasil
15:04
created

CancelShipmentRequest   A

Complexity

Total Complexity 3

Size/Duplication

Total Lines 26
Duplicated Lines 0 %

Test Coverage

Coverage 0%

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 7
dl 0
loc 26
ccs 0
cts 7
cp 0
rs 10
c 1
b 0
f 0
wmc 3

3 Methods

Rating   Name   Duplication   Size   Complexity  
A getShipmentId() 0 3 1
A getComment() 0 3 1
A __construct() 0 4 1
1
<?php
2
3
/*
4
 * This file is part of the Neutrino package.
5
 *
6
 * (c) Vasil Dakov <[email protected]>
7
 *
8
 * For the full copyright and license information, please view the LICENSE
9
 * file that was distributed with this source code.
10
 */
11
12
declare(strict_types=1);
13
14
namespace VasilDakov\Speedy\Service\Shipment;
15
16
/**
17
 * Class CancelShipmentRequest
18
 *
19
 * @author Vasil Dakov <[email protected]>
20
 * @copyright 2009-2023 Neutrino.bg
21
 * @version 1.0
22
 */
23
class CancelShipmentRequest
24
{
25
    private string $shipmentId;
26
27
    private string $comment;
28
29
    public function __construct(string $shipmentId, string $comment)
30
    {
31
        $this->shipmentId = $shipmentId;
32
        $this->comment = $comment;
33
    }
34
35
    /**
36
     * @return string
37
     */
38
    public function getShipmentId(): string
39
    {
40
        return $this->shipmentId;
41
    }
42
43
    /**
44
     * @return string
45
     */
46
    public function getComment(): string
47
    {
48
        return $this->comment;
49
    }
50
}