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