|
| 1 | +<?php |
| 2 | + |
| 3 | +declare(strict_types=1); |
| 4 | + |
| 5 | +namespace Scn\EvalancheSoapStruct\Struct\LeadPage; |
| 6 | + |
| 7 | +/** |
| 8 | + * Represents the article template configuration for a certain article type in a slot |
| 9 | + */ |
| 10 | +class LeadpageSlotItem implements LeadpageSlotItemInterface |
| 11 | +{ |
| 12 | + /** @var int */ |
| 13 | + private $articleTypeId; |
| 14 | + |
| 15 | + /** @var int */ |
| 16 | + private $landingpageArticleTemplateId; |
| 17 | + |
| 18 | + /** @var int */ |
| 19 | + private $webArticleTemplateId; |
| 20 | + |
| 21 | + /** @var list<int> */ |
| 22 | + private $landingpageAllowedArticleTemplateIds; |
| 23 | + |
| 24 | + /** @var list<int> */ |
| 25 | + private $webAllowedArticleTemplateIds; |
| 26 | + |
| 27 | + /** |
| 28 | + * @param list<int> $landingpageAllowedArticleTemplateIds |
| 29 | + * @param list<int> $webAllowedArticleTemplateIds |
| 30 | + */ |
| 31 | + public function __construct( |
| 32 | + int $articleTypeId = null, |
| 33 | + int $landingpageArticleTemplateId = null, |
| 34 | + int $webArticleTemplateId = null, |
| 35 | + array $landingpageAllowedArticleTemplateIds = null, |
| 36 | + array $webAllowedArticleTemplateIds = null |
| 37 | + ) { |
| 38 | + $this->articleTypeId = $articleTypeId; |
| 39 | + $this->landingpageArticleTemplateId = $landingpageArticleTemplateId; |
| 40 | + $this->webArticleTemplateId = $webArticleTemplateId; |
| 41 | + $this->landingpageAllowedArticleTemplateIds = $landingpageAllowedArticleTemplateIds; |
| 42 | + $this->webAllowedArticleTemplateIds = $webAllowedArticleTemplateIds; |
| 43 | + } |
| 44 | + |
| 45 | + public function getArticleTypeId(): int |
| 46 | + { |
| 47 | + return $this->articleTypeId; |
| 48 | + } |
| 49 | + |
| 50 | + public function setArticleTypeId(int $articleTypeId): LeadpageSlotItemInterface |
| 51 | + { |
| 52 | + $this->articleTypeId = $articleTypeId; |
| 53 | + return $this; |
| 54 | + } |
| 55 | + |
| 56 | + public function getLandingpageArticleTemplateId(): int |
| 57 | + { |
| 58 | + return $this->landingpageArticleTemplateId; |
| 59 | + } |
| 60 | + |
| 61 | + public function setLandingpageArticleTemplateId(int $landingpageArticleTemplateId): LeadpageSlotItemInterface |
| 62 | + { |
| 63 | + $this->landingpageArticleTemplateId = $landingpageArticleTemplateId; |
| 64 | + return $this; |
| 65 | + } |
| 66 | + |
| 67 | + public function getWebArticleTemplateId(): int |
| 68 | + { |
| 69 | + return $this->webArticleTemplateId; |
| 70 | + } |
| 71 | + |
| 72 | + public function setWebArticleTemplateId(int $webArticleTemplateId): LeadpageSlotItemInterface |
| 73 | + { |
| 74 | + $this->webArticleTemplateId = $webArticleTemplateId; |
| 75 | + return $this; |
| 76 | + } |
| 77 | + |
| 78 | + /** @inheritdoc */ |
| 79 | + public function getLandingpageAllowedArticleTemplateIds(): array |
| 80 | + { |
| 81 | + return $this->landingpageAllowedArticleTemplateIds; |
| 82 | + } |
| 83 | + |
| 84 | + /** @inheritdoc */ |
| 85 | + public function setLandingpageAllowedArticleTemplateIds(array $landingpageAllowedArticleTemplateIds): LeadpageSlotItemInterface |
| 86 | + { |
| 87 | + $this->landingpageAllowedArticleTemplateIds = $landingpageAllowedArticleTemplateIds; |
| 88 | + return $this; |
| 89 | + } |
| 90 | + |
| 91 | + /** @inheritdoc */ |
| 92 | + public function getWebAllowedArticleTemplateIds(): array |
| 93 | + { |
| 94 | + return $this->webAllowedArticleTemplateIds; |
| 95 | + } |
| 96 | + |
| 97 | + /** @inheritdoc */ |
| 98 | + public function setWebAllowedArticleTemplateIds(array $webAllowedArticleTemplateIds): LeadpageSlotItemInterface |
| 99 | + { |
| 100 | + $this->webAllowedArticleTemplateIds = $webAllowedArticleTemplateIds; |
| 101 | + return $this; |
| 102 | + } |
| 103 | +} |
0 commit comments