xxxxxxxxxx
namespace hp_;
use \WsdlToPhp\PackageBase\AbstractStructBase;
/**
* This class stands for THpSvcWTableauFormatICAL StructType
* @subpackage Structs
*/
class THpSvcWTableauFormatICAL extends AbstractStructBase
{
/**
* The THpSvcWFormatICAL
* Meta information extracted from the WSDL
* - maxOccurs: unbounded
* - minOccurs: 0
* @var string[]
*/
public $THpSvcWFormatICAL;
/**
* Constructor method for THpSvcWTableauFormatICAL
* @uses THpSvcWTableauFormatICAL::setTHpSvcWFormatICAL()
* @param string[] $tHpSvcWFormatICAL
*/
public function __construct(array $tHpSvcWFormatICAL = array())
{
$this
->setTHpSvcWFormatICAL($tHpSvcWFormatICAL);
}
/**
* Get THpSvcWFormatICAL value
* @return string[]|null
*/
public function getTHpSvcWFormatICAL()
{
return $this->THpSvcWFormatICAL;
}
/**
* This method is responsible for validating the values passed to the setTHpSvcWFormatICAL method
* This method is willingly generated in order to preserve the one-line inline validation within the setTHpSvcWFormatICAL method
* @param array $values
* @return string A non-empty message if the values does not match the validation rules
*/
public static function validateTHpSvcWFormatICALForArrayConstraintsFromSetTHpSvcWFormatICAL(array $values = array())
{
$message = '';
$invalidValues = [];
foreach ($values as $tHpSvcWTableauFormatICALTHpSvcWFormatICALItem) {
// validation for constraint: enumeration
if (!\hp_\THpSvcWFormatICAL::valueIsValid($tHpSvcWTableauFormatICALTHpSvcWFormatICALItem)) {
$invalidValues[] = is_object($tHpSvcWTableauFormatICALTHpSvcWFormatICALItem) ? get_class($tHpSvcWTableauFormatICALTHpSvcWFormatICALItem) : sprintf('%s(%s)', gettype($tHpSvcWTableauFormatICALTHpSvcWFormatICALItem), var_export($tHpSvcWTableauFormatICALTHpSvcWFormatICALItem, true));
}
}
if (!empty($invalidValues)) {
$message = sprintf('Invalid value(s) %s, please use one of: %s from enumeration class \hp_\THpSvcWFormatICAL', is_array($invalidValues) ? implode(', ', $invalidValues) : var_export($invalidValues, true), implode(', ', \hp_\THpSvcWFormatICAL::getValidValues()));
}
unset($invalidValues);
return $message;
}
/**
* Set THpSvcWFormatICAL value
* @uses \hp_\THpSvcWFormatICAL::valueIsValid()
* @uses \hp_\THpSvcWFormatICAL::getValidValues()
* @throws \InvalidArgumentException
* @param string[] $tHpSvcWFormatICAL
* @return \hp_\THpSvcWTableauFormatICAL
*/
public function setTHpSvcWFormatICAL(array $tHpSvcWFormatICAL = array())
{
// validation for constraint: array
if ('' !== ($tHpSvcWFormatICALArrayErrorMessage = self::validateTHpSvcWFormatICALForArrayConstraintsFromSetTHpSvcWFormatICAL($tHpSvcWFormatICAL))) {
throw new \InvalidArgumentException($tHpSvcWFormatICALArrayErrorMessage, __LINE__);
}
$this->THpSvcWFormatICAL = $tHpSvcWFormatICAL;
return $this;
}
/**
* Add item to THpSvcWFormatICAL value
* @uses \hp_\THpSvcWFormatICAL::valueIsValid()
* @uses \hp_\THpSvcWFormatICAL::getValidValues()
* @throws \InvalidArgumentException
* @param string $item
* @return \hp_\THpSvcWTableauFormatICAL
*/
public function addToTHpSvcWFormatICAL($item)
{
// validation for constraint: enumeration
if (!\hp_\THpSvcWFormatICAL::valueIsValid($item)) {
throw new \InvalidArgumentException(sprintf('Invalid value(s) %s, please use one of: %s from enumeration class \hp_\THpSvcWFormatICAL', is_array($item) ? implode(', ', $item) : var_export($item, true), implode(', ', \hp_\THpSvcWFormatICAL::getValidValues())), __LINE__);
}
$this->THpSvcWFormatICAL[] = $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