ShippingExport::setExternalId()   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
eloc 1
dl 0
loc 3
rs 10
c 0
b 0
f 0
cc 1
nc 1
nop 1
1
<?php
2
3
/*
4
 * This file was created by developers working at BitBag
5
 * Do you need more information about us and what we do? Visit our https://bitbag.io website!
6
 * We are hiring developers from all over the world. Join us and start your new, exciting adventure and become part of us: https://bitbag.io/career
7
*/
8
9
declare(strict_types=1);
10
11
namespace BitBag\SyliusShippingExportPlugin\Entity;
12
13
use Sylius\Component\Core\Model\ShipmentInterface;
14
15
class ShippingExport implements ShippingExportInterface
16
{
17
    /** @var int */
18
    protected $id;
19
20
    /** @var ShipmentInterface|null */
21
    protected $shipment;
22
23
    /** @var string|null */
24
    protected $externalId;
25
26
    /** @var ShippingGatewayInterface|null */
27
    protected $shippingGateway;
28
29
    /** @var \DateTime|null */
30
    protected $exportedAt;
31
32
    /** @var string|null */
33
    protected $labelPath;
34
35
    /** @var string|null */
36
    protected $state = ShippingExportInterface::STATE_NEW;
37
38
    public function getId(): int
39
    {
40
        return $this->id;
41
    }
42
43
    public function getShipment(): ?ShipmentInterface
44
    {
45
        return $this->shipment;
46
    }
47
48
    public function setShipment(?ShipmentInterface $shipment): void
49
    {
50
        $this->shipment = $shipment;
51
    }
52
53
    public function getExternalId(): ?string
54
    {
55
        return $this->externalId;
56
    }
57
58
    public function setExternalId(?string $externalId): void
59
    {
60
        $this->externalId = $externalId;
61
    }
62
63
    public function getShippingGateway(): ?ShippingGatewayInterface
64
    {
65
        return $this->shippingGateway;
66
    }
67
68
    public function setShippingGateway(?ShippingGatewayInterface $shippingGateway): void
69
    {
70
        $this->shippingGateway = $shippingGateway;
71
    }
72
73
    public function getExportedAt(): ?\DateTime
74
    {
75
        return $this->exportedAt;
76
    }
77
78
    public function setExportedAt(?\DateTime $exportedAt): void
79
    {
80
        $this->exportedAt = $exportedAt;
81
    }
82
83
    public function getState(): ?string
84
    {
85
        return $this->state;
86
    }
87
88
    public function setState(?string $state): void
89
    {
90
        $this->state = $state;
91
    }
92
93
    public function getLabelPath(): ?string
94
    {
95
        return $this->labelPath;
96
    }
97
98
    public function setLabelPath(?string $labelPath): void
99
    {
100
        $this->labelPath = $labelPath;
101
    }
102
}
103