Completed
Push — master ( 81d0ba...2132a6 )
by
unknown
04:12
created

ShippingExport::setExternalId()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 4
rs 10
c 0
b 0
f 0
cc 1
nc 1
nop 1
1
<?php
2
3
/*
4
 * This file has been created by the developers from BitBag.
5
 * Feel free to contact us once you face any issues or want to start
6
 * another great project.
7
 * You can find more information about us on https://bitbag.shop and write us
8
 * an email on [email protected].
9
 */
10
11
declare(strict_types=1);
12
13
namespace BitBag\SyliusShippingExportPlugin\Entity;
14
15
use Sylius\Component\Core\Model\ShipmentInterface;
16
17
class ShippingExport implements ShippingExportInterface
18
{
19
    /**
20
     * @var int
21
     */
22
    protected $id;
23
24
    /**
25
     * @var ShipmentInterface
26
     */
27
    protected $shipment;
28
29
    /**
30
     * @var string
31
     */
32
    protected $externalId;
33
34
    /**
35
     * @var ShippingGatewayInterface
36
     */
37
    protected $shippingGateway;
38
39
    /**
40
     * @var \DateTime
41
     */
42
    protected $exportedAt;
43
44
    /**
45
     * @var string
46
     */
47
    protected $labelPath;
48
49
    /**
50
     * @var string
51
     */
52
    protected $state = ShippingExportInterface::STATE_NEW;
53
54
    /**
55
     * {@inheritdoc}
56
     */
57
    public function getId(): int
58
    {
59
        return $this->id;
60
    }
61
62
    /**
63
     * {@inheritdoc}
64
     */
65
    public function getShipment(): ?ShipmentInterface
66
    {
67
        return $this->shipment;
68
    }
69
70
    /**
71
     * {@inheritdoc}
72
     */
73
    public function setShipment(?ShipmentInterface $shipment): void
74
    {
75
        $this->shipment = $shipment;
76
    }
77
78
    /**
79
     * {@inheritdoc}
80
     */
81
    public function getExternalId(): ?string
82
    {
83
        return $this->externalId;
84
    }
85
86
    /**
87
     * {@inheritdoc}
88
     */
89
    public function setExternalId(?string $externalId): void
90
    {
91
        $this->externalId = $externalId;
92
    }
93
94
    /**
95
     * {@inheritdoc}
96
     */
97
    public function getShippingGateway(): ?ShippingGatewayInterface
98
    {
99
        return $this->shippingGateway;
100
    }
101
102
    /**
103
     * {@inheritdoc}
104
     */
105
    public function setShippingGateway(?ShippingGatewayInterface $shippingGateway): void
106
    {
107
        $this->shippingGateway = $shippingGateway;
108
    }
109
110
    /**
111
     * {@inheritdoc}
112
     */
113
    public function getExportedAt(): ?\DateTime
114
    {
115
        return $this->exportedAt;
116
    }
117
118
    /**
119
     * {@inheritdoc}
120
     */
121
    public function setExportedAt(?\DateTime $exportedAt): void
122
    {
123
        $this->exportedAt = $exportedAt;
124
    }
125
126
    /**
127
     * {@inheritdoc}
128
     */
129
    public function getState(): ?string
130
    {
131
        return $this->state;
132
    }
133
134
    /**
135
     * {@inheritdoc}
136
     */
137
    public function setState(?string $state): void
138
    {
139
        $this->state = $state;
140
    }
141
142
    /**
143
     * {@inheritdoc}
144
     */
145
    public function getLabelPath(): ?string
146
    {
147
        return $this->labelPath;
148
    }
149
150
    /**
151
     * {@inheritdoc}
152
     */
153
    public function setLabelPath(?string $labelPath): void
154
    {
155
        $this->labelPath = $labelPath;
156
    }
157
}
158