Skip to content

Commit 0964418

Browse files
committed
Add Leadpage Template Struct
1 parent 3a87770 commit 0964418

File tree

4 files changed

+166
-35
lines changed

4 files changed

+166
-35
lines changed

src/Struct/LeadPage/LeadpageConfiguration.php

Lines changed: 66 additions & 35 deletions
Original file line numberDiff line numberDiff line change
@@ -9,67 +9,98 @@
99
*/
1010
class LeadpageConfiguration implements LeadpageConfigurationInterface
1111
{
12-
protected ?string $macroLibrary;
12+
/** @var string|null */
13+
protected $macroLibrary;
1314

14-
protected ?string $inputfield0;
15+
/** @var string|null */
16+
protected $inputfield0;
1517

16-
protected ?string $inputfield1;
18+
/** @var string|null */
19+
protected $inputfield1;
1720

18-
protected ?string $inputfield2;
19-
20-
protected ?string $inputfield3;
21-
22-
protected ?string $inputfield4;
23-
24-
protected ?string $inputfield5;
25-
26-
protected ?string $inputfield6;
21+
/** @var string|null */
22+
protected $inputfield2;
2723

28-
protected ?string $inputfield7;
24+
/** @var string|null */
25+
protected $inputfield3;
2926

30-
protected ?string $inputfield8;
27+
/** @var string|null */
28+
protected $inputfield4;
3129

32-
protected ?string $inputfield9;
30+
/** @var string|null */
31+
protected $inputfield5;
3332

34-
protected ?string $textarea0;
33+
/** @var string|null */
34+
protected $inputfield6;
3535

36-
protected ?string $textarea1;
36+
/** @var string|null */
37+
protected $inputfield7;
3738

38-
protected ?string $textarea2;
39+
/** @var string|null */
40+
protected $inputfield8;
3941

40-
protected ?string $textarea3;
42+
/** @var string|null */
43+
protected $inputfield9;
4144

42-
protected ?string $textarea4;
45+
/** @var string|null */
46+
protected $textarea0;
4347

44-
protected ?string $textarea5;
48+
/** @var string|null */
49+
protected $textarea1;
4550

46-
protected ?string $textarea6;
51+
/** @var string|null */
52+
protected $textarea2;
4753

48-
protected ?string $textarea7;
54+
/** @var string|null */
55+
protected $textarea3;
4956

50-
protected ?string $textarea8;
57+
/** @var string|null */
58+
protected $textarea4;
5159

52-
protected ?string $textarea9;
60+
/** @var string|null */
61+
protected $textarea5;
5362

54-
protected ?string $htmlarea0;
63+
/** @var string|null */
64+
protected $textarea6;
5565

56-
protected ?string $htmlarea1;
66+
/** @var string|null */
67+
protected $textarea7;
5768

58-
protected ?string $htmlarea2;
69+
/** @var string|null */
70+
protected $textarea8;
5971

60-
protected ?string $htmlarea3;
72+
/** @var string|null */
73+
protected $textarea9;
6174

62-
protected ?string $htmlarea4;
75+
/** @var string|null */
76+
protected $htmlarea0;
6377

64-
protected ?string $htmlarea5;
78+
/** @var string|null */
79+
protected $htmlarea1;
6580

66-
protected ?string $htmlarea6;
81+
/** @var string|null */
82+
protected $htmlarea2;
6783

68-
protected ?string $htmlarea7;
84+
/** @var string|null */
85+
protected $htmlarea3;
6986

70-
protected ?string $htmlarea8;
87+
/** @var string|null */
88+
protected $htmlarea4;
7189

72-
protected ?string $htmlarea9;
90+
/** @var string|null */
91+
protected $htmlarea5;
92+
93+
/** @var string|null */
94+
protected $htmlarea6;
95+
96+
/** @var string|null */
97+
protected $htmlarea7;
98+
99+
/** @var string|null */
100+
protected $htmlarea8;
101+
102+
/** @var string|null */
103+
protected $htmlarea9;
73104

74105
public function __construct(
75106
string $macroLibrary = null,
Lines changed: 49 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
1+
<?php
2+
3+
declare(strict_types=1);
4+
5+
namespace Scn\EvalancheSoapStruct\Struct\LeadPageTemplate;
6+
7+
/**
8+
* Contains the source code of the leadpage
9+
*/
10+
class TemplatesSources implements TemplatesSourcesInterface
11+
{
12+
/** @var string|null */
13+
private $templateWeb;
14+
15+
/** @var string|null */
16+
private $templateLandingpage;
17+
18+
public function __construct(
19+
string $templateWeb = null,
20+
string $templateLandingpage = null
21+
) {
22+
$this->templateWeb = $templateWeb;
23+
$this->templateLandingpage = $templateLandingpage;
24+
}
25+
26+
public function getTemplateWeb(): ?string
27+
{
28+
return $this->templateWeb;
29+
}
30+
31+
public function setTemplateWeb(string $templateWeb): TemplatesSourcesInterface
32+
{
33+
$this->templateWeb = $templateWeb;
34+
35+
return $this;
36+
}
37+
38+
public function getTemplateLandingpage(): ?string
39+
{
40+
return $this->templateLandingpage;
41+
}
42+
43+
public function setTemplateLandingpage(string $templateLandingpage): TemplatesSourcesInterface
44+
{
45+
$this->templateLandingpage = $templateLandingpage;
46+
47+
return $this;
48+
}
49+
}
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
<?php
2+
3+
namespace Scn\EvalancheSoapStruct\Struct\LeadPageTemplate;
4+
5+
use Scn\EvalancheSoapStruct\Struct\StructInterface;
6+
7+
/**
8+
* Contains the source code of the leadpage
9+
*/
10+
interface TemplatesSourcesInterface extends StructInterface
11+
{
12+
public function getTemplateWeb(): ?string;
13+
14+
public function setTemplateWeb(string $template_web): TemplatesSourcesInterface;
15+
16+
public function getTemplateLandingpage(): ?string;
17+
18+
public function setTemplateLandingpage(string $template_landingpage): TemplatesSourcesInterface;
19+
}
Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
<?php
2+
3+
declare(strict_types=1);
4+
5+
namespace Scn\EvalancheSoapStruct\Struct\LeadPageTemplate;
6+
7+
use Scn\EvalancheSoapStruct\GenericSetterGetterTestCase;
8+
9+
class TemplatesSourcesTest extends GenericSetterGetterTestCase
10+
{
11+
12+
/** @var TemplatesSources|null */
13+
private $subject;
14+
15+
public function setUp(): void
16+
{
17+
$this->subject = new TemplatesSources();
18+
}
19+
20+
public static function methodDataProvider(): array
21+
{
22+
return [
23+
['TemplateWeb', 'string'],
24+
['TemplateLandingpage', 'string']
25+
];
26+
}
27+
28+
protected function getSubject()
29+
{
30+
return $this->subject;
31+
}
32+
}

0 commit comments

Comments
 (0)