Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
70 changes: 70 additions & 0 deletions phpstan-baseline.neon
Original file line number Diff line number Diff line change
Expand Up @@ -565,6 +565,76 @@ parameters:
count: 1
path: src/Struct/LeadPage/LeadpageArticle.php

-
message: "#^Property Scn\\\\EvalancheSoapStruct\\\\Struct\\\\LeadPage\\\\LeadpageSlot\\:\\:\\$id \\(int\\) does not accept int\\|null\\.$#"
count: 1
path: src/Struct/LeadPage/LeadpageSlot.php

-
message: "#^Property Scn\\\\EvalancheSoapStruct\\\\Struct\\\\LeadPage\\\\LeadpageSlot\\:\\:\\$items \\(array\\<int, Scn\\\\EvalancheSoapStruct\\\\Struct\\\\LeadPage\\\\LeadpageSlotItemInterface\\>\\) does not accept array\\<int, Scn\\\\EvalancheSoapStruct\\\\Struct\\\\LeadPage\\\\LeadpageSlotItemInterface\\>\\|null\\.$#"
count: 1
path: src/Struct/LeadPage/LeadpageSlot.php

-
message: "#^Property Scn\\\\EvalancheSoapStruct\\\\Struct\\\\LeadPage\\\\LeadpageSlot\\:\\:\\$name \\(string\\) does not accept string\\|null\\.$#"
count: 1
path: src/Struct/LeadPage/LeadpageSlot.php

-
message: "#^Property Scn\\\\EvalancheSoapStruct\\\\Struct\\\\LeadPage\\\\LeadpageSlot\\:\\:\\$slotNumber \\(int\\) does not accept int\\|null\\.$#"
count: 1
path: src/Struct/LeadPage/LeadpageSlot.php

-
message: "#^Property Scn\\\\EvalancheSoapStruct\\\\Struct\\\\LeadPage\\\\LeadpageSlot\\:\\:\\$sortTypeId \\(int\\) does not accept int\\|null\\.$#"
count: 1
path: src/Struct/LeadPage/LeadpageSlot.php

-
message: "#^Property Scn\\\\EvalancheSoapStruct\\\\Struct\\\\LeadPage\\\\LeadpageSlot\\:\\:\\$sortTypeValue \\(int\\) does not accept int\\|null\\.$#"
count: 1
path: src/Struct/LeadPage/LeadpageSlot.php

-
message: "#^Property Scn\\\\EvalancheSoapStruct\\\\Struct\\\\LeadPage\\\\LeadpageSlotConfiguration\\:\\:\\$items \\(array\\<int, Scn\\\\EvalancheSoapStruct\\\\Struct\\\\LeadPage\\\\LeadpageSlotInterface\\>\\) does not accept array\\<int, Scn\\\\EvalancheSoapStruct\\\\Struct\\\\LeadPage\\\\LeadpageSlotInterface\\>\\|null\\.$#"
count: 1
path: src/Struct/LeadPage/LeadpageSlotConfiguration.php

-
message: "#^Property Scn\\\\EvalancheSoapStruct\\\\Struct\\\\LeadPage\\\\LeadpageSlotItem\\:\\:\\$articleTypeId \\(int\\) does not accept int\\|null\\.$#"
count: 1
path: src/Struct/LeadPage/LeadpageSlotItem.php

-
message: "#^Property Scn\\\\EvalancheSoapStruct\\\\Struct\\\\LeadPage\\\\LeadpageSlotItem\\:\\:\\$landingpageAllowedArticleTemplateIds \\(array\\<int, int\\>\\) does not accept array\\<int, int\\>\\|null\\.$#"
count: 1
path: src/Struct/LeadPage/LeadpageSlotItem.php

-
message: "#^Property Scn\\\\EvalancheSoapStruct\\\\Struct\\\\LeadPage\\\\LeadpageSlotItem\\:\\:\\$landingpageArticleTemplateId \\(int\\) does not accept int\\|null\\.$#"
count: 1
path: src/Struct/LeadPage/LeadpageSlotItem.php

-
message: "#^Property Scn\\\\EvalancheSoapStruct\\\\Struct\\\\LeadPage\\\\LeadpageSlotItem\\:\\:\\$webAllowedArticleTemplateIds \\(array\\<int, int\\>\\) does not accept array\\<int, int\\>\\|null\\.$#"
count: 1
path: src/Struct/LeadPage/LeadpageSlotItem.php

-
message: "#^Property Scn\\\\EvalancheSoapStruct\\\\Struct\\\\LeadPage\\\\LeadpageSlotItem\\:\\:\\$webArticleTemplateId \\(int\\) does not accept int\\|null\\.$#"
count: 1
path: src/Struct/LeadPage/LeadpageSlotItem.php

-
message: "#^Property Scn\\\\EvalancheSoapStruct\\\\Struct\\\\LeadPageTemplate\\\\LeadpageTemplateAllowedTemplates\\:\\:\\$templateIds \\(array\\<int, int\\>\\) does not accept array\\<int, int\\>\\|null\\.$#"
count: 1
path: src/Struct/LeadPageTemplate/LeadpageTemplateAllowedTemplates.php

-
message: "#^Property Scn\\\\EvalancheSoapStruct\\\\Struct\\\\LeadPageTemplate\\\\LeadpageTemplateAllowedTemplates\\:\\:\\$templateType \\(int\\) does not accept int\\|null\\.$#"
count: 1
path: src/Struct/LeadPageTemplate/LeadpageTemplateAllowedTemplates.php

-
message: "#^Property Scn\\\\EvalancheSoapStruct\\\\Struct\\\\Mailing\\\\MailingArticle\\:\\:\\$articleId \\(int\\) does not accept int\\|null\\.$#"
count: 1
Expand Down
115 changes: 115 additions & 0 deletions src/Struct/LeadPage/LeadpageSlot.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,115 @@
<?php

declare(strict_types=1);

namespace Scn\EvalancheSoapStruct\Struct\LeadPage;

/**
* Represents the configuration of a slot in a leadpage
*/
class LeadpageSlot implements LeadpageSlotInterface
{
/** @var int */
private $id;

/** @var string */
private $name;

/** @var int */
private $slotNumber;

/** @var int */
private $sortTypeId;

/** @var int */
private $sortTypeValue;

/** @var list<LeadpageSlotItemInterface> */
private $items;

/**
* @param list<LeadpageSlotItemInterface> $items
*/
public function __construct(
int $id = null,
string $name = null,
int $slotNumber = null,
int $sortTypeId = null,
int $sortTypeValue = null,
array $items = null
) {
$this->id = $id;
$this->name = $name;
$this->slotNumber = $slotNumber;
$this->sortTypeId = $sortTypeId;
$this->sortTypeValue = $sortTypeValue;
$this->items = $items;
}

public function getId(): int
{
return $this->id;
}

public function setId(int $id): LeadpageSlotInterface
{
$this->id = $id;
return $this;
}

public function getName(): string
{
return $this->name;
}

public function setName(string $name): LeadpageSlotInterface
{
$this->name = $name;
return $this;
}

public function getSlotNumber(): int
{
return $this->slotNumber;
}

public function setSlotNumber(int $slotNumber): LeadpageSlotInterface
{
$this->slotNumber = $slotNumber;
return $this;
}

public function getSortTypeId(): int
{
return $this->sortTypeId;
}

public function setSortTypeId(int $sortTypeId): LeadpageSlotInterface
{
$this->sortTypeId = $sortTypeId;
return $this;
}

public function getSortTypeValue(): int
{
return $this->sortTypeValue;
}

public function setSortTypeValue(int $sortTypeValue): LeadpageSlotInterface
{
$this->sortTypeValue = $sortTypeValue;
return $this;
}

/** @inheritdoc */
public function getItems(): array
{
return $this->items;
}

public function setItems(array $items): LeadpageSlotInterface
{
$this->items = $items;
return $this;
}
}
38 changes: 38 additions & 0 deletions src/Struct/LeadPage/LeadpageSlotConfiguration.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
<?php

declare(strict_types=1);

namespace Scn\EvalancheSoapStruct\Struct\LeadPage;

class LeadpageSlotConfiguration implements LeadpageSlotConfigurationInterface
{
/** @var list<LeadpageSlotInterface> */
private $items;

/**
* @param list<LeadpageSlotInterface> $items
*/
public function __construct(
array $items = null
) {
$this->items = $items;
}

/**
* @return list<LeadpageSlotInterface>
*/
public function getItems(): array
{
return $this->items;
}

/**
* @param list<LeadpageSlotInterface> $items
*/
public function setItems(array $items): LeadpageSlotConfigurationInterface
{
$this->items = $items;

return $this;
}
}
18 changes: 18 additions & 0 deletions src/Struct/LeadPage/LeadpageSlotConfigurationInterface.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
<?php

namespace Scn\EvalancheSoapStruct\Struct\LeadPage;

use Scn\EvalancheSoapStruct\Struct\StructInterface;

interface LeadpageSlotConfigurationInterface extends StructInterface
{
/**
* @return list<LeadpageSlotInterface>
*/
public function getItems(): array;

/**
* @param list<LeadpageSlotInterface> $items
*/
public function setItems(array $items): LeadpageSlotConfigurationInterface;
}
41 changes: 41 additions & 0 deletions src/Struct/LeadPage/LeadpageSlotInterface.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
<?php

namespace Scn\EvalancheSoapStruct\Struct\LeadPage;

use Scn\EvalancheSoapStruct\Struct\StructInterface;

/**
* Represents the configuration of a slot in a leadpage
*/
interface LeadpageSlotInterface extends StructInterface
{
public function getId(): int;

public function setId(int $id): LeadpageSlotInterface;

public function getName(): string;

public function setName(string $name): LeadpageSlotInterface;

public function getSlotNumber(): int;

public function setSlotNumber(int $slotNumber): LeadpageSlotInterface;

public function getSortTypeId(): int;

public function setSortTypeId(int $sortTypeId): LeadpageSlotInterface;

public function getSortTypeValue(): int;

public function setSortTypeValue(int $sortTypeValue): LeadpageSlotInterface;

/**
* @return list<LeadpageSlotItemInterface>
*/
public function getItems(): array;

/**
* @param list<LeadpageSlotItemInterface> $items
*/
public function setItems(array $items): LeadpageSlotInterface;
}
103 changes: 103 additions & 0 deletions src/Struct/LeadPage/LeadpageSlotItem.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,103 @@
<?php

declare(strict_types=1);

namespace Scn\EvalancheSoapStruct\Struct\LeadPage;

/**
* Represents the article template configuration for a certain article type in a slot
*/
class LeadpageSlotItem implements LeadpageSlotItemInterface
{
/** @var int */
private $articleTypeId;

/** @var int */
private $landingpageArticleTemplateId;

/** @var int */
private $webArticleTemplateId;

/** @var list<int> */
private $landingpageAllowedArticleTemplateIds;

/** @var list<int> */
private $webAllowedArticleTemplateIds;

/**
* @param list<int> $landingpageAllowedArticleTemplateIds
* @param list<int> $webAllowedArticleTemplateIds
*/
public function __construct(
int $articleTypeId = null,
int $landingpageArticleTemplateId = null,
int $webArticleTemplateId = null,
array $landingpageAllowedArticleTemplateIds = null,
array $webAllowedArticleTemplateIds = null
) {
$this->articleTypeId = $articleTypeId;
$this->landingpageArticleTemplateId = $landingpageArticleTemplateId;
$this->webArticleTemplateId = $webArticleTemplateId;
$this->landingpageAllowedArticleTemplateIds = $landingpageAllowedArticleTemplateIds;
$this->webAllowedArticleTemplateIds = $webAllowedArticleTemplateIds;
}

public function getArticleTypeId(): int
{
return $this->articleTypeId;
}

public function setArticleTypeId(int $articleTypeId): LeadpageSlotItemInterface
{
$this->articleTypeId = $articleTypeId;
return $this;
}

public function getLandingpageArticleTemplateId(): int
{
return $this->landingpageArticleTemplateId;
}

public function setLandingpageArticleTemplateId(int $landingpageArticleTemplateId): LeadpageSlotItemInterface
{
$this->landingpageArticleTemplateId = $landingpageArticleTemplateId;
return $this;
}

public function getWebArticleTemplateId(): int
{
return $this->webArticleTemplateId;
}

public function setWebArticleTemplateId(int $webArticleTemplateId): LeadpageSlotItemInterface
{
$this->webArticleTemplateId = $webArticleTemplateId;
return $this;
}

/** @inheritdoc */
public function getLandingpageAllowedArticleTemplateIds(): array
{
return $this->landingpageAllowedArticleTemplateIds;
}

/** @inheritdoc */
public function setLandingpageAllowedArticleTemplateIds(array $landingpageAllowedArticleTemplateIds): LeadpageSlotItemInterface
{
$this->landingpageAllowedArticleTemplateIds = $landingpageAllowedArticleTemplateIds;
return $this;
}

/** @inheritdoc */
public function getWebAllowedArticleTemplateIds(): array
{
return $this->webAllowedArticleTemplateIds;
}

/** @inheritdoc */
public function setWebAllowedArticleTemplateIds(array $webAllowedArticleTemplateIds): LeadpageSlotItemInterface
{
$this->webAllowedArticleTemplateIds = $webAllowedArticleTemplateIds;
return $this;
}
}
Loading
Loading