Skip to content

Commit b85af82

Browse files
Johannes VogtWorksDev
authored andcommitted
Move ContainerType from MailingConfiguration to MailingTemplateConfiguration struct
Fixes #48
1 parent f8bfb0b commit b85af82

File tree

4 files changed

+178
-40
lines changed

4 files changed

+178
-40
lines changed

src/Struct/Mailing/MailingConfiguration.php

Lines changed: 1 addition & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -232,11 +232,6 @@ class MailingConfiguration implements MailingConfigurationInterface
232232
*/
233233
protected $htmlarea9;
234234

235-
/**
236-
* @var string
237-
*/
238-
protected $containerType;
239-
240235
/**
241236
* @param string $externalTrackingCode
242237
* @param string $campaignId
@@ -282,7 +277,6 @@ class MailingConfiguration implements MailingConfigurationInterface
282277
* @param string $htmlarea7
283278
* @param string $htmlarea8
284279
* @param string $htmlarea9
285-
* @param string $containerType
286280
*/
287281
public function __construct(
288282
string $externalTrackingCode = null,
@@ -328,8 +322,7 @@ public function __construct(
328322
string $htmlarea6 = null,
329323
string $htmlarea7 = null,
330324
string $htmlarea8 = null,
331-
string $htmlarea9 = null,
332-
string $containerType = null
325+
string $htmlarea9 = null
333326
) {
334327
$this->externalTrackingCode = $externalTrackingCode;
335328
$this->campaignId = $campaignId;
@@ -375,7 +368,6 @@ public function __construct(
375368
$this->htmlarea7 = $htmlarea7;
376369
$this->htmlarea8 = $htmlarea8;
377370
$this->htmlarea9 = $htmlarea9;
378-
$this->containerType = $containerType;
379371
}
380372

381373
/**
@@ -1213,23 +1205,4 @@ public function setHtmlarea9(string $htmlarea9): MailingConfiguration
12131205
$this->htmlarea9 = $htmlarea9;
12141206
return $this;
12151207
}
1216-
1217-
/**
1218-
* @return string
1219-
*/
1220-
public function getContainerType(): string
1221-
{
1222-
return $this->containerType;
1223-
}
1224-
1225-
/**
1226-
* @param string $containerType
1227-
*
1228-
* @return $this
1229-
*/
1230-
public function setContainerType(string $containerType): MailingConfiguration
1231-
{
1232-
$this->containerType = $containerType;
1233-
return $this;
1234-
}
12351208
}

src/Struct/Mailing/MailingConfigurationInterface.php

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -538,16 +538,4 @@ public function getHtmlarea9(): string;
538538
* @return MailingConfiguration
539539
*/
540540
public function setHtmlarea9(string $htmlarea9): MailingConfiguration;
541-
542-
/**
543-
* @return string
544-
*/
545-
public function getContainerType(): string;
546-
547-
/**
548-
* @param string $containerType
549-
*
550-
* @return $this
551-
*/
552-
public function setContainerType(string $containerType): MailingConfiguration;
553541
}

src/Struct/MailingTemplate/MailingTemplateConfiguration.php

Lines changed: 166 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,4 +12,170 @@
1212
*/
1313
class MailingTemplateConfiguration extends MailingConfiguration implements MailingTemplateConfigurationInterface
1414
{
15+
/**
16+
* @var string
17+
*/
18+
protected $containerType;
19+
20+
/**
21+
* @param string $externalTrackingCode
22+
* @param string $campaignId
23+
* @param string $externalXmlUrl
24+
* @param string $salutationFemale
25+
* @param string $salutationMale
26+
* @param string $salutationCompany
27+
* @param string $salutationFamily
28+
* @param string $salutationOther
29+
* @param string $senderEmail
30+
* @param string $senderName
31+
* @param string $replyName
32+
* @param string $replyEmail
33+
* @param string $grantUrl
34+
* @param string $revokeUrl
35+
* @param string $inputfield0
36+
* @param string $inputfield1
37+
* @param string $inputfield2
38+
* @param string $inputfield3
39+
* @param string $inputfield4
40+
* @param string $inputfield5
41+
* @param string $inputfield6
42+
* @param string $inputfield7
43+
* @param string $inputfield8
44+
* @param string $inputfield9
45+
* @param string $textarea0
46+
* @param string $textarea1
47+
* @param string $textarea2
48+
* @param string $textarea3
49+
* @param string $textarea4
50+
* @param string $textarea5
51+
* @param string $textarea6
52+
* @param string $textarea7
53+
* @param string $textarea8
54+
* @param string $textarea9
55+
* @param string $htmlarea0
56+
* @param string $htmlarea1
57+
* @param string $htmlarea2
58+
* @param string $htmlarea3
59+
* @param string $htmlarea4
60+
* @param string $htmlarea5
61+
* @param string $htmlarea6
62+
* @param string $htmlarea7
63+
* @param string $htmlarea8
64+
* @param string $htmlarea9
65+
* @param string $containerType
66+
*/
67+
public function __construct(
68+
string $externalTrackingCode = null,
69+
string $campaignId = null,
70+
string $externalXmlUrl = null,
71+
string $salutationFemale = null,
72+
string $salutationMale = null,
73+
string $salutationCompany = null,
74+
string $salutationFamily = null,
75+
string $salutationOther = null,
76+
string $senderEmail = null,
77+
string $senderName = null,
78+
string $replyName = null,
79+
string $replyEmail = null,
80+
string $grantUrl = null,
81+
string $revokeUrl = null,
82+
string $inputfield0 = null,
83+
string $inputfield1 = null,
84+
string $inputfield2 = null,
85+
string $inputfield3 = null,
86+
string $inputfield4 = null,
87+
string $inputfield5 = null,
88+
string $inputfield6 = null,
89+
string $inputfield7 = null,
90+
string $inputfield8 = null,
91+
string $inputfield9 = null,
92+
string $textarea0 = null,
93+
string $textarea1 = null,
94+
string $textarea2 = null,
95+
string $textarea3 = null,
96+
string $textarea4 = null,
97+
string $textarea5 = null,
98+
string $textarea6 = null,
99+
string $textarea7 = null,
100+
string $textarea8 = null,
101+
string $textarea9 = null,
102+
string $htmlarea0 = null,
103+
string $htmlarea1 = null,
104+
string $htmlarea2 = null,
105+
string $htmlarea3 = null,
106+
string $htmlarea4 = null,
107+
string $htmlarea5 = null,
108+
string $htmlarea6 = null,
109+
string $htmlarea7 = null,
110+
string $htmlarea8 = null,
111+
string $htmlarea9 = null,
112+
string $containerType = null
113+
) {
114+
parent::__construct(
115+
$externalTrackingCode,
116+
$campaignId,
117+
$externalXmlUrl,
118+
$salutationFemale,
119+
$salutationMale,
120+
$salutationCompany,
121+
$salutationFamily,
122+
$salutationOther,
123+
$senderEmail,
124+
$senderName,
125+
$replyName,
126+
$replyEmail,
127+
$grantUrl,
128+
$revokeUrl,
129+
$inputfield0,
130+
$inputfield1,
131+
$inputfield2,
132+
$inputfield3,
133+
$inputfield4,
134+
$inputfield5,
135+
$inputfield6,
136+
$inputfield7,
137+
$inputfield8,
138+
$inputfield9,
139+
$textarea0,
140+
$textarea1,
141+
$textarea2,
142+
$textarea3,
143+
$textarea4,
144+
$textarea5,
145+
$textarea6,
146+
$textarea7,
147+
$textarea8,
148+
$textarea9,
149+
$htmlarea0,
150+
$htmlarea1,
151+
$htmlarea2,
152+
$htmlarea3,
153+
$htmlarea4,
154+
$htmlarea5,
155+
$htmlarea6,
156+
$htmlarea7,
157+
$htmlarea8,
158+
$htmlarea9
159+
);
160+
$this->containerType = $containerType;
161+
}
162+
163+
/**
164+
* @return string
165+
*/
166+
public function getContainerType(): string
167+
{
168+
return $this->containerType;
169+
}
170+
171+
/**
172+
* @param string $containerType
173+
*
174+
* @return $this
175+
*/
176+
public function setContainerType(string $containerType): MailingTemplateConfiguration
177+
{
178+
$this->containerType = $containerType;
179+
return $this;
180+
}
15181
}

src/Struct/MailingTemplate/MailingTemplateConfigurationInterface.php

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,4 +6,15 @@
66

77
interface MailingTemplateConfigurationInterface extends MailingConfigurationInterface
88
{
9+
/**
10+
* @return string
11+
*/
12+
public function getContainerType(): string;
13+
14+
/**
15+
* @param string $containerType
16+
*
17+
* @return $this
18+
*/
19+
public function setContainerType(string $containerType): MailingTemplateConfiguration;
920
}

0 commit comments

Comments
 (0)