Passed
Push — master ( 887027...a0a234 )
by Christian
09:41 queued 11s
created

DocumentConfiguration   A

Complexity

Total Complexity 16

Size/Duplication

Total Lines 232
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
eloc 48
dl 0
loc 232
rs 10
c 0
b 0
f 0
wmc 16

16 Methods

Rating   Name   Duplication   Size   Complexity  
A getPageOrientation() 0 3 1
A setPageSize() 0 3 1
A setDocumentNumber() 0 3 1
A getDocumentNumber() 0 3 1
A getPageSize() 0 3 1
A __isset() 0 3 1
A getDocumentComment() 0 3 1
A setFilenamePrefix() 0 3 1
A getApiAlias() 0 3 1
A __get() 0 3 1
A setDocumentComment() 0 3 1
A setFilenameSuffix() 0 3 1
A getFilenameSuffix() 0 3 1
A setPageOrientation() 0 3 1
A __set() 0 5 1
A getFilenamePrefix() 0 3 1
1
<?php declare(strict_types=1);
2
3
namespace Shopware\Core\Checkout\Document;
4
5
use Shopware\Core\Framework\Struct\Struct;
6
7
class DocumentConfiguration extends Struct
8
{
9
    /**
10
     * @var bool|null
11
     */
12
    protected $displayPrices;
13
14
    /**
15
     * @var array|null
16
     */
17
    protected $logo;
18
19
    /**
20
     * @var string|null
21
     */
22
    protected $filenamePrefix;
23
24
    /**
25
     * @var string|null
26
     */
27
    protected $filenameSuffix;
28
29
    /**
30
     * @var string|null
31
     */
32
    protected $documentNumber;
33
34
    /**
35
     * @var string|null
36
     */
37
    protected $documentComment;
38
39
    /**
40
     * @var string
41
     */
42
    protected $pageOrientation;
43
44
    /**
45
     * @var string
46
     */
47
    protected $pageSize;
48
49
    /**
50
     * @var bool|null
51
     */
52
    protected $displayFooter;
53
54
    /**
55
     * @var bool|null
56
     */
57
    protected $displayHeader;
58
59
    /**
60
     * @var bool|null
61
     */
62
    protected $displayLineItems;
63
64
    /**
65
     * @var bool|null
66
     */
67
    protected $displayLineItemPosition;
68
69
    /**
70
     * @var int|null
71
     */
72
    protected $itemsPerPage;
73
74
    /**
75
     * @var bool|null
76
     */
77
    protected $displayPageCount;
78
79
    /**
80
     * @var bool|null
81
     */
82
    protected $displayCompanyAddress;
83
84
    /**
85
     * @var string|null
86
     */
87
    protected $title;
88
89
    /**
90
     * @var string|null
91
     */
92
    protected $companyAddress;
93
94
    /**
95
     * @var string|null
96
     */
97
    protected $companyName;
98
99
    /**
100
     * @var string|null
101
     */
102
    protected $companyEmail;
103
104
    /**
105
     * @var string|null
106
     */
107
    protected $companyUrl;
108
109
    /**
110
     * @var string|null
111
     */
112
    protected $taxNumber;
113
114
    /**
115
     * @var string|null
116
     */
117
    protected $taxOffice;
118
119
    /**
120
     * @var string|null
121
     */
122
    protected $vatId;
123
124
    /**
125
     * @var string|null
126
     */
127
    protected $bankName;
128
129
    /**
130
     * @var string|null
131
     */
132
    protected $bankIban;
133
134
    /**
135
     * @var string|null
136
     */
137
    protected $bankBic;
138
139
    /**
140
     * @var string|null
141
     */
142
    protected $placeOfJurisdiction;
143
144
    /**
145
     * @var string|null
146
     */
147
    protected $placeOfFulfillment;
148
149
    /**
150
     * @var string|null
151
     */
152
    protected $executiveDirector;
153
154
    /**
155
     * @var array
156
     */
157
    protected $custom = [];
158
159
    public function __set($name, $value)
160
    {
161
        $this->$name = $value;
162
163
        return $this;
164
    }
165
166
    public function __get($name)
167
    {
168
        return $this->$name;
169
    }
170
171
    public function __isset($name)
172
    {
173
        return property_exists($this, $name);
174
    }
175
176
    public function getFilenamePrefix(): ?string
177
    {
178
        return $this->filenamePrefix;
179
    }
180
181
    public function setFilenamePrefix(?string $filenamePrefix): void
182
    {
183
        $this->filenamePrefix = $filenamePrefix;
184
    }
185
186
    public function getFilenameSuffix(): ?string
187
    {
188
        return $this->filenameSuffix;
189
    }
190
191
    public function setFilenameSuffix(?string $filenameSuffix): void
192
    {
193
        $this->filenameSuffix = $filenameSuffix;
194
    }
195
196
    public function getDocumentNumber(): ?string
197
    {
198
        return $this->documentNumber;
199
    }
200
201
    public function setDocumentNumber(?string $documentNumber): void
202
    {
203
        $this->documentNumber = $documentNumber;
204
    }
205
206
    public function getDocumentComment(): ?string
207
    {
208
        return $this->documentComment;
209
    }
210
211
    public function setDocumentComment(?string $documentComment): void
212
    {
213
        $this->documentComment = $documentComment;
214
    }
215
216
    public function getPageOrientation(): ?string
217
    {
218
        return $this->pageOrientation;
219
    }
220
221
    public function setPageOrientation(?string $pageOrientation): void
222
    {
223
        $this->pageOrientation = $pageOrientation;
224
    }
225
226
    public function getPageSize(): ?string
227
    {
228
        return $this->pageSize;
229
    }
230
231
    public function setPageSize(?string $pageSize): void
232
    {
233
        $this->pageSize = $pageSize;
234
    }
235
236
    public function getApiAlias(): string
237
    {
238
        return 'document_configuration';
239
    }
240
}
241