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