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

CancelShipmentRequest::getComment()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 0
CRAP Score 2

Importance

Changes 1
Bugs 0 Features 0
Metric Value
cc 1
eloc 1
nc 1
nop 0
dl 0
loc 3
ccs 0
cts 2
cp 0
crap 2
rs 10
c 1
b 0
f 0
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
}