PartialShipItem::setId()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
eloc 1
nc 1
nop 1
dl 0
loc 3
rs 10
c 0
b 0
f 0
1
<?php
2
3
/*
4
 * This file has been created by developers from BitBag.
5
 * Feel free to contact us once you face any issues or want to start
6
 * You can find more information about us on https://bitbag.io and write us
7
 * an email on [email protected].
8
 */
9
10
declare(strict_types=1);
11
12
namespace BitBag\SyliusMolliePlugin\DTO;
13
14
final class PartialShipItem
15
{
16
    /** @var int */
17
    private $id;
18
19
    /** @var string */
20
    private $lineId;
21
22
    /** @var int */
23
    private $quantity;
24
25
    public function getId(): int
26
    {
27
        return $this->id;
28
    }
29
30
    public function setId(int $id): void
31
    {
32
        $this->id = $id;
33
    }
34
35
    public function getLineId(): string
36
    {
37
        return $this->lineId;
38
    }
39
40
    public function setLineId(string $lineId): void
41
    {
42
        $this->lineId = $lineId;
43
    }
44
45
    public function getQuantity(): int
46
    {
47
        return $this->quantity;
48
    }
49
50
    public function setQuantity(int $quantity): void
51
    {
52
        $this->quantity = $quantity;
53
    }
54
}
55