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