Passed
Push — main ( bcc232...2bc5a4 )
by Vasil
03:27
created

CancelShipmentRequest::getComment()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 2
CRAP Score 1

Importance

Changes 2
Bugs 0 Features 0
Metric Value
cc 1
eloc 1
c 2
b 0
f 0
nc 1
nop 0
dl 0
loc 3
ccs 2
cts 2
cp 1
crap 1
rs 10
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
use VasilDakov\Speedy\Traits\ToArray;
17
18
/**
19
 * Class CancelShipmentRequest
20
 *
21
 * @author Vasil Dakov <[email protected]>
22
 * @copyright 2009-2023 Neutrino.bg
23
 * @version 1.0
24
 */
25
class CancelShipmentRequest
26
{
27
    use ToArray;
28
29
    private string $shipmentId;
30
31
    private string $comment;
32
33 1
    public function __construct(string $shipmentId, string $comment)
34
    {
35 1
        $this->shipmentId = $shipmentId;
36 1
        $this->comment = $comment;
37
    }
38
39
    /**
40
     * @return string
41
     */
42 1
    public function getShipmentId(): string
43
    {
44 1
        return $this->shipmentId;
45
    }
46
47
    /**
48
     * @return string
49
     */
50 1
    public function getComment(): string
51
    {
52 1
        return $this->comment;
53
    }
54
}
55