AvataxConfiguration::getAppName()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
cc 1
eloc 1
c 1
b 0
f 0
nc 1
nop 0
dl 0
loc 3
rs 10
1
<?php
2
3
declare(strict_types=1);
4
5
namespace Odiseo\SyliusAvataxPlugin\Entity;
6
7
use Sylius\Component\Addressing\Model\ZoneInterface;
8
use Sylius\Component\Resource\Model\TimestampableTrait;
9
use Sylius\Component\Resource\Model\ToggleableTrait;
10
11
class AvataxConfiguration implements AvataxConfigurationInterface
12
{
13
    use TimestampableTrait;
14
    use ToggleableTrait;
15
16
    /** @var int|null */
17
    protected $id;
18
19
    /** @var string|null */
20
    protected $appName;
21
22
    /** @var string|null */
23
    protected $appVersion;
24
25
    /** @var string|null */
26
    protected $machineName;
27
28
    /** @var bool|null */
29
    protected $sandbox = true;
30
31
    /** @var int|null */
32
    protected $accountId;
33
34
    /** @var string|null */
35
    protected $licenseKey;
36
37
    /** @var string|null */
38
    protected $shippingTaxCode;
39
40
    /** @var ZoneInterface|null */
41
    protected $zone;
42
43
    /** @var AvataxConfigurationSenderDataInterface|null */
44
    protected $senderData;
45
46
    public function __construct()
47
    {
48
        $this->createdAt = new \DateTime();
49
    }
50
51
    /**
52
     * {@inheritdoc}
53
     */
54
    public function getId(): ?int
55
    {
56
        return $this->id;
57
    }
58
59
    /**
60
     * {@inheritdoc}
61
     */
62
    public function getAppName(): ?string
63
    {
64
        return $this->appName;
65
    }
66
67
    /**
68
     * {@inheritdoc}
69
     */
70
    public function setAppName(?string $appName): void
71
    {
72
        $this->appName = $appName;
73
    }
74
75
    /**
76
     * {@inheritdoc}
77
     */
78
    public function getAppVersion(): ?string
79
    {
80
        return $this->appVersion;
81
    }
82
83
    /**
84
     * {@inheritdoc}
85
     */
86
    public function setAppVersion(?string $appVersion): void
87
    {
88
        $this->appVersion = $appVersion;
89
    }
90
91
    /**
92
     * {@inheritdoc}
93
     */
94
    public function getMachineName(): ?string
95
    {
96
        return $this->machineName;
97
    }
98
99
    /**
100
     * {@inheritdoc}
101
     */
102
    public function setMachineName(?string $machineName): void
103
    {
104
        $this->machineName = $machineName;
105
    }
106
107
    /**
108
     * {@inheritdoc}
109
     */
110
    public function isSandbox(): ?bool
111
    {
112
        return $this->sandbox;
113
    }
114
115
    /**
116
     * {@inheritdoc}
117
     */
118
    public function setSandbox(?bool $sandbox): void
119
    {
120
        $this->sandbox = (bool) $sandbox;
121
    }
122
123
    /**
124
     * {@inheritdoc}
125
     */
126
    public function getAccountId(): ?int
127
    {
128
        return $this->accountId;
129
    }
130
131
    /**
132
     * {@inheritdoc}
133
     */
134
    public function setAccountId(?int $accountId): void
135
    {
136
        $this->accountId = $accountId;
137
    }
138
139
    /**
140
     * {@inheritdoc}
141
     */
142
    public function getLicenseKey(): ?string
143
    {
144
        return $this->licenseKey;
145
    }
146
147
    /**
148
     * {@inheritdoc}
149
     */
150
    public function setLicenseKey(?string $licenseKey): void
151
    {
152
        $this->licenseKey = $licenseKey;
153
    }
154
155
    /**
156
     * {@inheritdoc}
157
     */
158
    public function getShippingTaxCode(): ?string
159
    {
160
        return $this->shippingTaxCode;
161
    }
162
163
    /**
164
     * {@inheritdoc}
165
     */
166
    public function setShippingTaxCode(?string $shippingTaxCode): void
167
    {
168
        $this->shippingTaxCode = $shippingTaxCode;
169
    }
170
171
    /**
172
     * {@inheritdoc}
173
     */
174
    public function getZone(): ?ZoneInterface
175
    {
176
        return $this->zone;
177
    }
178
179
    /**
180
     * {@inheritdoc}
181
     */
182
    public function setZone(?ZoneInterface $zone): void
183
    {
184
        $this->zone = $zone;
185
    }
186
187
    /**
188
     * {@inheritdoc}
189
     */
190
    public function getSenderData(): ?AvataxConfigurationSenderDataInterface
191
    {
192
        return $this->senderData;
193
    }
194
195
    /**
196
     * {@inheritdoc}
197
     */
198
    public function setSenderData(?AvataxConfigurationSenderDataInterface $senderData): void
199
    {
200
        $this->senderData = $senderData;
201
    }
202
}
203