xxxxxxxxxx
use \WsdlToPhp\PackageBase\AbstractStructBase;
/**
* This class stands for setStatusZgodyNaEZwrot StructType
* @subpackage Structs
*/
class SetStatusZgodyNaEZwrot extends AbstractStructBase
{
/**
* The statusZgody
* Meta information extracted from the WSDL
* - maxOccurs: unbounded
* - minOccurs: 1
* @var StatusZgodyEZwrotType[]
*/
public $statusZgody;
/**
* Constructor method for setStatusZgodyNaEZwrot
* @uses SetStatusZgodyNaEZwrot::setStatusZgody()
* @param StatusZgodyEZwrotType[] $statusZgody
*/
public function __construct(array $statusZgody = array())
{
$this
->setStatusZgody($statusZgody);
}
/**
* Get statusZgody value
* @return StatusZgodyEZwrotType[]
*/
public function getStatusZgody()
{
return $this->statusZgody;
}
/**
* This method is responsible for validating the values passed to the setStatusZgody method
* This method is willingly generated in order to preserve the one-line inline validation within the setStatusZgody method
* @param array $values
* @return string A non-empty message if the values does not match the validation rules
*/
public static function validateStatusZgodyForArrayConstraintsFromSetStatusZgody(array $values = array())
{
$message = '';
$invalidValues = [];
foreach ($values as $setStatusZgodyNaEZwrotStatusZgodyItem) {
// validation for constraint: itemType
if (!$setStatusZgodyNaEZwrotStatusZgodyItem instanceof StatusZgodyEZwrotType) {
$invalidValues[] = is_object($setStatusZgodyNaEZwrotStatusZgodyItem) ? get_class($setStatusZgodyNaEZwrotStatusZgodyItem) : sprintf('%s(%s)', gettype($setStatusZgodyNaEZwrotStatusZgodyItem), var_export($setStatusZgodyNaEZwrotStatusZgodyItem, true));
}
}
if (!empty($invalidValues)) {
$message = sprintf('The statusZgody property can only contain items of type StatusZgodyEZwrotType, %s given', is_object($invalidValues) ? get_class($invalidValues) : (is_array($invalidValues) ? implode(', ', $invalidValues) : gettype($invalidValues)));
}
unset($invalidValues);
return $message;
}
/**
* Set statusZgody value
* @throws \InvalidArgumentException
* @param StatusZgodyEZwrotType[] $statusZgody
* @return SetStatusZgodyNaEZwrot
*/
public function setStatusZgody(array $statusZgody = array())
{
// validation for constraint: array
if ('' !== ($statusZgodyArrayErrorMessage = self::validateStatusZgodyForArrayConstraintsFromSetStatusZgody($statusZgody))) {
throw new \InvalidArgumentException($statusZgodyArrayErrorMessage, __LINE__);
}
$this->statusZgody = $statusZgody;
return $this;
}
/**
* Add item to statusZgody value
* @throws \InvalidArgumentException
* @param StatusZgodyEZwrotType $item
* @return SetStatusZgodyNaEZwrot
*/
public function addToStatusZgody(StatusZgodyEZwrotType $item)
{
// validation for constraint: itemType
if (!$item instanceof StatusZgodyEZwrotType) {
throw new \InvalidArgumentException(sprintf('The statusZgody property can only contain items of type StatusZgodyEZwrotType, %s given', is_object($item) ? get_class($item) : (is_array($item) ? implode(', ', $item) : gettype($item))), __LINE__);
}
$this->statusZgody[] = $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