xxxxxxxxxx
use \WsdlToPhp\PackageBase\AbstractStructBase;
/**
* This class stands for getEZDOListResponse StructType
* @subpackage Structs
*/
class GetEZDOListResponse extends AbstractStructBase
{
/**
* The EZDOPakiet
* Meta information extracted from the WSDL
* - maxOccurs: unbounded
* - minOccurs: 0
* @var EZDOPakietType[]
*/
public $EZDOPakiet;
/**
* Constructor method for getEZDOListResponse
* @uses GetEZDOListResponse::setEZDOPakiet()
* @param EZDOPakietType[] $eZDOPakiet
*/
public function __construct(array $eZDOPakiet = array())
{
$this
->setEZDOPakiet($eZDOPakiet);
}
/**
* Get EZDOPakiet value
* @return EZDOPakietType[]|null
*/
public function getEZDOPakiet()
{
return $this->EZDOPakiet;
}
/**
* This method is responsible for validating the values passed to the setEZDOPakiet method
* This method is willingly generated in order to preserve the one-line inline validation within the setEZDOPakiet method
* @param array $values
* @return string A non-empty message if the values does not match the validation rules
*/
public static function validateEZDOPakietForArrayConstraintsFromSetEZDOPakiet(array $values = array())
{
$message = '';
$invalidValues = [];
foreach ($values as $getEZDOListResponseEZDOPakietItem) {
// validation for constraint: itemType
if (!$getEZDOListResponseEZDOPakietItem instanceof EZDOPakietType) {
$invalidValues[] = is_object($getEZDOListResponseEZDOPakietItem) ? get_class($getEZDOListResponseEZDOPakietItem) : sprintf('%s(%s)', gettype($getEZDOListResponseEZDOPakietItem), var_export($getEZDOListResponseEZDOPakietItem, true));
}
}
if (!empty($invalidValues)) {
$message = sprintf('The EZDOPakiet property can only contain items of type EZDOPakietType, %s given', is_object($invalidValues) ? get_class($invalidValues) : (is_array($invalidValues) ? implode(', ', $invalidValues) : gettype($invalidValues)));
}
unset($invalidValues);
return $message;
}
/**
* Set EZDOPakiet value
* @throws \InvalidArgumentException
* @param EZDOPakietType[] $eZDOPakiet
* @return GetEZDOListResponse
*/
public function setEZDOPakiet(array $eZDOPakiet = array())
{
// validation for constraint: array
if ('' !== ($eZDOPakietArrayErrorMessage = self::validateEZDOPakietForArrayConstraintsFromSetEZDOPakiet($eZDOPakiet))) {
throw new \InvalidArgumentException($eZDOPakietArrayErrorMessage, __LINE__);
}
$this->EZDOPakiet = $eZDOPakiet;
return $this;
}
/**
* Add item to EZDOPakiet value
* @throws \InvalidArgumentException
* @param EZDOPakietType $item
* @return GetEZDOListResponse
*/
public function addToEZDOPakiet(EZDOPakietType $item)
{
// validation for constraint: itemType
if (!$item instanceof EZDOPakietType) {
throw new \InvalidArgumentException(sprintf('The EZDOPakiet property can only contain items of type EZDOPakietType, %s given', is_object($item) ? get_class($item) : (is_array($item) ? implode(', ', $item) : gettype($item))), __LINE__);
}
$this->EZDOPakiet[] = $item;
return $this;
}
}
Don't be shy, don't hesitate to contact us for any subject, we'll be glad to help.
This platform is provided to give developpers and non developpers a way to easily consume SOAP Web Services or share their own SOAP Web Services with extra features powered by the platform.
© 2025 Providr.IO