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