Skip to content

Commit f8bfb0b

Browse files
Johannes Vogtusox
authored andcommitted
Add ContainerType to MailingConfiguration struct
Fixes #46
1 parent 872ae3f commit f8bfb0b

File tree

3 files changed

+48
-1
lines changed

3 files changed

+48
-1
lines changed

src/Struct/Mailing/MailingConfiguration.php

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

235+
/**
236+
* @var string
237+
*/
238+
protected $containerType;
239+
235240
/**
236241
* @param string $externalTrackingCode
237242
* @param string $campaignId
@@ -277,6 +282,7 @@ class MailingConfiguration implements MailingConfigurationInterface
277282
* @param string $htmlarea7
278283
* @param string $htmlarea8
279284
* @param string $htmlarea9
285+
* @param string $containerType
280286
*/
281287
public function __construct(
282288
string $externalTrackingCode = null,
@@ -322,7 +328,8 @@ public function __construct(
322328
string $htmlarea6 = null,
323329
string $htmlarea7 = null,
324330
string $htmlarea8 = null,
325-
string $htmlarea9 = null
331+
string $htmlarea9 = null,
332+
string $containerType = null
326333
) {
327334
$this->externalTrackingCode = $externalTrackingCode;
328335
$this->campaignId = $campaignId;
@@ -368,6 +375,7 @@ public function __construct(
368375
$this->htmlarea7 = $htmlarea7;
369376
$this->htmlarea8 = $htmlarea8;
370377
$this->htmlarea9 = $htmlarea9;
378+
$this->containerType = $containerType;
371379
}
372380

373381
/**
@@ -1205,4 +1213,23 @@ public function setHtmlarea9(string $htmlarea9): MailingConfiguration
12051213
$this->htmlarea9 = $htmlarea9;
12061214
return $this;
12071215
}
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+
}
12081235
}

src/Struct/Mailing/MailingConfigurationInterface.php

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -538,4 +538,16 @@ 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;
541553
}

tests/Struct/MailingTemplate/MailingTemplateConfigurationTest.php

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -368,4 +368,12 @@ public function testGetHtmlArea9CanReturnString()
368368
$this->subject->setHtmlarea9('some htmlarea 9')->getHtmlarea9()
369369
);
370370
}
371+
372+
public function testGetContainerTypeCanReturnString()
373+
{
374+
$this->assertSame(
375+
'some container type',
376+
$this->subject->setContainerType('some container type')->getContainerType()
377+
);
378+
}
371379
}

0 commit comments

Comments
 (0)