/
dimamir
/
Wsdl_PackageGenerator
Обзор
Документация
Войти
/
dimamir
/
Wsdl_PackageGenerator
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
Аналитика
Безопасность
develop
tests/resources/generated/ValidCampaignGetItem.php
715 строк
22 KB
Mikaël DELSOL
issue #299 - Allow classes to have dynamic properties
17 авг 2023, 23:23
17 авг 2023, 23:23
074f558
Код
Авторство
О чём код?
<?php declare(strict_types=1); namespace StructType; use WsdlToPhp\PackageBase\AbstractStructBase; /** * This class stands for CampaignGetItem StructType * @package Api * @subpackage Structs * @release 1.1.0 */ #[\AllowDynamicProperties] class ApiCampaignGetItem extends ApiCampaignBase { /** * The Id * Meta information extracted from the WSDL * - maxOccurs: 1 * - minOccurs: 0 * @var int|null */ public ?int $Id = null; /** * The Name * Meta information extracted from the WSDL * - maxOccurs: 1 * - minOccurs: 0 * @var string|null */ public ?string $Name = null; /** * The StartDate * Meta information extracted from the WSDL * - maxOccurs: 1 * - minOccurs: 0 * @var string|null */ public ?string $StartDate = null; /** * The Type * Meta information extracted from the WSDL * - maxOccurs: 1 * - minOccurs: 0 * @var string|null */ public ?string $Type = null; /** * The Status * Meta information extracted from the WSDL * - maxOccurs: 1 * - minOccurs: 0 * @var string|null */ public ?string $Status = null; /** * The State * Meta information extracted from the WSDL * - maxOccurs: 1 * - minOccurs: 0 * @var string|null */ public ?string $State = null; /** * The StatusPayment * Meta information extracted from the WSDL * - maxOccurs: 1 * - minOccurs: 0 * @var string|null */ public ?string $StatusPayment = null; /** * The StatusClarification * Meta information extracted from the WSDL * - maxOccurs: 1 * - minOccurs: 0 * @var string|null */ public ?string $StatusClarification = null; /** * The Statistics * Meta information extracted from the WSDL * - maxOccurs: 1 * - minOccurs: 0 * @var \StructType\ApiStatistics|null */ public ?\StructType\ApiStatistics $Statistics = null; /** * The Currency * Meta information extracted from the WSDL * - maxOccurs: 1 * - minOccurs: 0 * @var string|null */ public ?string $Currency = null; /** * The Funds * Meta information extracted from the WSDL * - maxOccurs: 1 * - minOccurs: 0 * @var \StructType\ApiFundsParam|null */ public ?\StructType\ApiFundsParam $Funds = null; /** * The RepresentedBy * Meta information extracted from the WSDL * - maxOccurs: 1 * - minOccurs: 0 * @var \StructType\ApiCampaignAssistant|null */ public ?\StructType\ApiCampaignAssistant $RepresentedBy = null; /** * The TextCampaign * Meta information extracted from the WSDL * - maxOccurs: 1 * - minOccurs: 0 * @var \StructType\ApiTextCampaignGetItem|null */ public ?\StructType\ApiTextCampaignGetItem $TextCampaign = null; /** * The MobileAppCampaign * Meta information extracted from the WSDL * - maxOccurs: 1 * - minOccurs: 0 * @var \StructType\ApiMobileAppCampaignGetItem|null */ public ?\StructType\ApiMobileAppCampaignGetItem $MobileAppCampaign = null; /** * The DynamicTextCampaign * Meta information extracted from the WSDL * - maxOccurs: 1 * - minOccurs: 0 * @var \StructType\ApiDynamicTextCampaignGetItem|null */ public ?\StructType\ApiDynamicTextCampaignGetItem $DynamicTextCampaign = null; /** * The SourceId * Meta information extracted from the WSDL * - maxOccurs: 1 * - minOccurs: 0 * - nillable: true * @var int|null */ public ?int $SourceId = null; /** * The DailyBudget * Meta information extracted from the WSDL * - maxOccurs: 1 * - minOccurs: 0 * - nillable: true * @var \StructType\ApiDailyBudget|null */ public ?\StructType\ApiDailyBudget $DailyBudget = null; /** * The EndDate * Meta information extracted from the WSDL * - maxOccurs: 1 * - minOccurs: 0 * - nillable: true * @var string|null */ public ?string $EndDate = null; /** * The NegativeKeywords * Meta information extracted from the WSDL * - maxOccurs: 1 * - minOccurs: 0 * - nillable: true * @var \ArrayType\ApiArrayOfString|null */ public ?\ArrayType\ApiArrayOfString $NegativeKeywords = null; /** * The BlockedIps * Meta information extracted from the WSDL * - maxOccurs: 1 * - minOccurs: 0 * - nillable: true * @var \ArrayType\ApiArrayOfString|null */ public ?\ArrayType\ApiArrayOfString $BlockedIps = null; /** * The ExcludedSites * Meta information extracted from the WSDL * - maxOccurs: 1 * - minOccurs: 0 * - nillable: true * @var \ArrayType\ApiArrayOfString|null */ public ?\ArrayType\ApiArrayOfString $ExcludedSites = null; /** * Constructor method for CampaignGetItem * @uses ApiCampaignGetItem::setId() * @uses ApiCampaignGetItem::setName() * @uses ApiCampaignGetItem::setStartDate() * @uses ApiCampaignGetItem::setType() * @uses ApiCampaignGetItem::setStatus() * @uses ApiCampaignGetItem::setState() * @uses ApiCampaignGetItem::setStatusPayment() * @uses ApiCampaignGetItem::setStatusClarification() * @uses ApiCampaignGetItem::setStatistics() * @uses ApiCampaignGetItem::setCurrency() * @uses ApiCampaignGetItem::setFunds() * @uses ApiCampaignGetItem::setRepresentedBy() * @uses ApiCampaignGetItem::setTextCampaign() * @uses ApiCampaignGetItem::setMobileAppCampaign() * @uses ApiCampaignGetItem::setDynamicTextCampaign() * @uses ApiCampaignGetItem::setSourceId() * @uses ApiCampaignGetItem::setDailyBudget() * @uses ApiCampaignGetItem::setEndDate() * @uses ApiCampaignGetItem::setNegativeKeywords() * @uses ApiCampaignGetItem::setBlockedIps() * @uses ApiCampaignGetItem::setExcludedSites() * @param int $id * @param string $name * @param string $startDate * @param string $type * @param string $status * @param string $state * @param string $statusPayment * @param string $statusClarification * @param \StructType\ApiStatistics $statistics * @param string $currency * @param \StructType\ApiFundsParam $funds * @param \StructType\ApiCampaignAssistant $representedBy * @param \StructType\ApiTextCampaignGetItem $textCampaign * @param \StructType\ApiMobileAppCampaignGetItem $mobileAppCampaign * @param \StructType\ApiDynamicTextCampaignGetItem $dynamicTextCampaign * @param int $sourceId * @param \StructType\ApiDailyBudget $dailyBudget * @param string $endDate * @param \ArrayType\ApiArrayOfString $negativeKeywords * @param \ArrayType\ApiArrayOfString $blockedIps * @param \ArrayType\ApiArrayOfString $excludedSites */ public function __construct(?int $id = null, ?string $name = null, ?string $startDate = null, ?string $type = null, ?string $status = null, ?string $state = null, ?string $statusPayment = null, ?string $statusClarification = null, ?\StructType\ApiStatistics $statistics = null, ?string $currency = null, ?\StructType\ApiFundsParam $funds = null, ?\StructType\ApiCampaignAssistant $representedBy = null, ?\StructType\ApiTextCampaignGetItem $textCampaign = null, ?\StructType\ApiMobileAppCampaignGetItem $mobileAppCampaign = null, ?\StructType\ApiDynamicTextCampaignGetItem $dynamicTextCampaign = null, ?int $sourceId = null, ?\StructType\ApiDailyBudget $dailyBudget = null, ?string $endDate = null, ?\ArrayType\ApiArrayOfString $negativeKeywords = null, ?\ArrayType\ApiArrayOfString $blockedIps = null, ?\ArrayType\ApiArrayOfString $excludedSites = null) { $this ->setId($id) ->setName($name) ->setStartDate($startDate) ->setType($type) ->setStatus($status) ->setState($state) ->setStatusPayment($statusPayment) ->setStatusClarification($statusClarification) ->setStatistics($statistics) ->setCurrency($currency) ->setFunds($funds) ->setRepresentedBy($representedBy) ->setTextCampaign($textCampaign) ->setMobileAppCampaign($mobileAppCampaign) ->setDynamicTextCampaign($dynamicTextCampaign) ->setSourceId($sourceId) ->setDailyBudget($dailyBudget) ->setEndDate($endDate) ->setNegativeKeywords($negativeKeywords) ->setBlockedIps($blockedIps) ->setExcludedSites($excludedSites); } /** * Get Id value * @return int|null */ public function getId(): ?int { return $this->Id; } /** * Set Id value * @param int $id * @return \StructType\ApiCampaignGetItem */ public function setId(?int $id = null): self { $this->Id = $id; return $this; } /** * Get Name value * @return string|null */ public function getName(): ?string { return $this->Name; } /** * Set Name value * @param string $name * @return \StructType\ApiCampaignGetItem */ public function setName(?string $name = null): self { $this->Name = $name; return $this; } /** * Get StartDate value * @return string|null */ public function getStartDate(): ?string { return $this->StartDate; } /** * Set StartDate value * @param string $startDate * @return \StructType\ApiCampaignGetItem */ public function setStartDate(?string $startDate = null): self { $this->StartDate = $startDate; return $this; } /** * Get Type value * @return string|null */ public function getType(): ?string { return $this->Type; } /** * Set Type value * @param string $type * @return \StructType\ApiCampaignGetItem */ public function setType(?string $type = null): self { $this->Type = $type; return $this; } /** * Get Status value * @return string|null */ public function getStatus(): ?string { return $this->Status; } /** * Set Status value * @param string $status * @return \StructType\ApiCampaignGetItem */ public function setStatus(?string $status = null): self { $this->Status = $status; return $this; } /** * Get State value * @return string|null */ public function getState(): ?string { return $this->State; } /** * Set State value * @param string $state * @return \StructType\ApiCampaignGetItem */ public function setState(?string $state = null): self { $this->State = $state; return $this; } /** * Get StatusPayment value * @return string|null */ public function getStatusPayment(): ?string { return $this->StatusPayment; } /** * Set StatusPayment value * @param string $statusPayment * @return \StructType\ApiCampaignGetItem */ public function setStatusPayment(?string $statusPayment = null): self { $this->StatusPayment = $statusPayment; return $this; } /** * Get StatusClarification value * @return string|null */ public function getStatusClarification(): ?string { return $this->StatusClarification; } /** * Set StatusClarification value * @param string $statusClarification * @return \StructType\ApiCampaignGetItem */ public function setStatusClarification(?string $statusClarification = null): self { $this->StatusClarification = $statusClarification; return $this; } /** * Get Statistics value * @return \StructType\ApiStatistics|null */ public function getStatistics(): ?\StructType\ApiStatistics { return $this->Statistics; } /** * Set Statistics value * @param \StructType\ApiStatistics $statistics * @return \StructType\ApiCampaignGetItem */ public function setStatistics(?\StructType\ApiStatistics $statistics = null): self { $this->Statistics = $statistics; return $this; } /** * Get Currency value * @return string|null */ public function getCurrency(): ?string { return $this->Currency; } /** * Set Currency value * @param string $currency * @return \StructType\ApiCampaignGetItem */ public function setCurrency(?string $currency = null): self { $this->Currency = $currency; return $this; } /** * Get Funds value * @return \StructType\ApiFundsParam|null */ public function getFunds(): ?\StructType\ApiFundsParam { return $this->Funds; } /** * Set Funds value * @param \StructType\ApiFundsParam $funds * @return \StructType\ApiCampaignGetItem */ public function setFunds(?\StructType\ApiFundsParam $funds = null): self { $this->Funds = $funds; return $this; } /** * Get RepresentedBy value * @return \StructType\ApiCampaignAssistant|null */ public function getRepresentedBy(): ?\StructType\ApiCampaignAssistant { return $this->RepresentedBy; } /** * Set RepresentedBy value * @param \StructType\ApiCampaignAssistant $representedBy * @return \StructType\ApiCampaignGetItem */ public function setRepresentedBy(?\StructType\ApiCampaignAssistant $representedBy = null): self { $this->RepresentedBy = $representedBy; return $this; } /** * Get TextCampaign value * @return \StructType\ApiTextCampaignGetItem|null */ public function getTextCampaign(): ?\StructType\ApiTextCampaignGetItem { return $this->TextCampaign; } /** * Set TextCampaign value * @param \StructType\ApiTextCampaignGetItem $textCampaign * @return \StructType\ApiCampaignGetItem */ public function setTextCampaign(?\StructType\ApiTextCampaignGetItem $textCampaign = null): self { $this->TextCampaign = $textCampaign; return $this; } /** * Get MobileAppCampaign value * @return \StructType\ApiMobileAppCampaignGetItem|null */ public function getMobileAppCampaign(): ?\StructType\ApiMobileAppCampaignGetItem { return $this->MobileAppCampaign; } /** * Set MobileAppCampaign value * @param \StructType\ApiMobileAppCampaignGetItem $mobileAppCampaign * @return \StructType\ApiCampaignGetItem */ public function setMobileAppCampaign(?\StructType\ApiMobileAppCampaignGetItem $mobileAppCampaign = null): self { $this->MobileAppCampaign = $mobileAppCampaign; return $this; } /** * Get DynamicTextCampaign value * @return \StructType\ApiDynamicTextCampaignGetItem|null */ public function getDynamicTextCampaign(): ?\StructType\ApiDynamicTextCampaignGetItem { return $this->DynamicTextCampaign; } /** * Set DynamicTextCampaign value * @param \StructType\ApiDynamicTextCampaignGetItem $dynamicTextCampaign * @return \StructType\ApiCampaignGetItem */ public function setDynamicTextCampaign(?\StructType\ApiDynamicTextCampaignGetItem $dynamicTextCampaign = null): self { $this->DynamicTextCampaign = $dynamicTextCampaign; return $this; } /** * Get SourceId value * An additional test has been added (isset) before returning the property value as * this property may have been unset before, due to the fact that this property is * removable from the request (nillable=true+minOccurs=0) * @return int|null */ public function getSourceId(): ?int { return $this->SourceId ?? null; } /** * Set SourceId value * This property is removable from request (nillable=true+minOccurs=0), therefore * if the value assigned to this property is null, it is removed from this object * @param int $sourceId * @return \StructType\ApiCampaignGetItem */ public function setSourceId(?int $sourceId = null): self { if (is_null($sourceId) || (is_array($sourceId) && empty($sourceId))) { unset($this->SourceId); } else { $this->SourceId = $sourceId; } return $this; } /** * Get DailyBudget value * An additional test has been added (isset) before returning the property value as * this property may have been unset before, due to the fact that this property is * removable from the request (nillable=true+minOccurs=0) * @return \StructType\ApiDailyBudget|null */ public function getDailyBudget(): ?\StructType\ApiDailyBudget { return $this->DailyBudget ?? null; } /** * Set DailyBudget value * This property is removable from request (nillable=true+minOccurs=0), therefore * if the value assigned to this property is null, it is removed from this object * @param \StructType\ApiDailyBudget $dailyBudget * @return \StructType\ApiCampaignGetItem */ public function setDailyBudget(?\StructType\ApiDailyBudget $dailyBudget = null): self { if (is_null($dailyBudget) || (is_array($dailyBudget) && empty($dailyBudget))) { unset($this->DailyBudget); } else { $this->DailyBudget = $dailyBudget; } return $this; } /** * Get EndDate value * An additional test has been added (isset) before returning the property value as * this property may have been unset before, due to the fact that this property is * removable from the request (nillable=true+minOccurs=0) * @return string|null */ public function getEndDate(): ?string { return $this->EndDate ?? null; } /** * Set EndDate value * This property is removable from request (nillable=true+minOccurs=0), therefore * if the value assigned to this property is null, it is removed from this object * @param string $endDate * @return \StructType\ApiCampaignGetItem */ public function setEndDate(?string $endDate = null): self { if (is_null($endDate) || (is_array($endDate) && empty($endDate))) { unset($this->EndDate); } else { $this->EndDate = $endDate; } return $this; } /** * Get NegativeKeywords value * An additional test has been added (isset) before returning the property value as * this property may have been unset before, due to the fact that this property is * removable from the request (nillable=true+minOccurs=0) * @return \ArrayType\ApiArrayOfString|null */ public function getNegativeKeywords(): ?\ArrayType\ApiArrayOfString { return $this->NegativeKeywords ?? null; } /** * Set NegativeKeywords value * This property is removable from request (nillable=true+minOccurs=0), therefore * if the value assigned to this property is null, it is removed from this object * @param \ArrayType\ApiArrayOfString $negativeKeywords * @return \StructType\ApiCampaignGetItem */ public function setNegativeKeywords(?\ArrayType\ApiArrayOfString $negativeKeywords = null): self { if (is_null($negativeKeywords) || (is_array($negativeKeywords) && empty($negativeKeywords))) { unset($this->NegativeKeywords); } else { $this->NegativeKeywords = $negativeKeywords; } return $this; } /** * Get BlockedIps value * An additional test has been added (isset) before returning the property value as * this property may have been unset before, due to the fact that this property is * removable from the request (nillable=true+minOccurs=0) * @return \ArrayType\ApiArrayOfString|null */ public function getBlockedIps(): ?\ArrayType\ApiArrayOfString { return $this->BlockedIps ?? null; } /** * Set BlockedIps value * This property is removable from request (nillable=true+minOccurs=0), therefore * if the value assigned to this property is null, it is removed from this object * @param \ArrayType\ApiArrayOfString $blockedIps * @return \StructType\ApiCampaignGetItem */ public function setBlockedIps(?\ArrayType\ApiArrayOfString $blockedIps = null): self { if (is_null($blockedIps) || (is_array($blockedIps) && empty($blockedIps))) { unset($this->BlockedIps); } else { $this->BlockedIps = $blockedIps; } return $this; } /** * Get ExcludedSites value * An additional test has been added (isset) before returning the property value as * this property may have been unset before, due to the fact that this property is * removable from the request (nillable=true+minOccurs=0) * @return \ArrayType\ApiArrayOfString|null */ public function getExcludedSites(): ?\ArrayType\ApiArrayOfString { return $this->ExcludedSites ?? null; } /** * Set ExcludedSites value * This property is removable from request (nillable=true+minOccurs=0), therefore * if the value assigned to this property is null, it is removed from this object * @param \ArrayType\ApiArrayOfString $excludedSites * @return \StructType\ApiCampaignGetItem */ public function setExcludedSites(?\ArrayType\ApiArrayOfString $excludedSites = null): self { if (is_null($excludedSites) || (is_array($excludedSites) && empty($excludedSites))) { unset($this->ExcludedSites); } else { $this->ExcludedSites = $excludedSites; } return $this; } }