xxxxxxxxxx
use \WsdlToPhp\PackageBase\AbstractStructBase;
/**
* This class stands for GetUserByUserName StructType
* @subpackage Structs
*/
class GetUserByUserName extends AbstractStructBase
{
/**
* The populationLevel
* Meta informations extracted from the WSDL
* - maxOccurs: 1
* - minOccurs: 1
* @var int
*/
public $populationLevel;
/**
* The inDomainId
* Meta informations extracted from the WSDL
* - maxOccurs: 1
* - minOccurs: 0
* @var string
*/
public $inDomainId;
/**
* The usrName
* Meta informations extracted from the WSDL
* - maxOccurs: 1
* - minOccurs: 0
* @var string
*/
public $usrName;
/**
* Constructor method for GetUserByUserName
* @uses GetUserByUserName::setPopulationLevel()
* @uses GetUserByUserName::setInDomainId()
* @uses GetUserByUserName::setUsrName()
* @param int $populationLevel
* @param string $inDomainId
* @param string $usrName
*/
public function __construct($populationLevel = null, $inDomainId = null, $usrName = null)
{
$this
->setPopulationLevel($populationLevel)
->setInDomainId($inDomainId)
->setUsrName($usrName);
}
/**
* Get populationLevel value
* @return int
*/
public function getPopulationLevel()
{
return $this->populationLevel;
}
/**
* Set populationLevel value
* @param int $populationLevel
* @return GetUserByUserName
*/
public function setPopulationLevel($populationLevel = null)
{
// validation for constraint: int
if (!is_null($populationLevel) && !is_numeric($populationLevel)) {
throw new \InvalidArgumentException(sprintf('Invalid value, please provide a numeric value, "%s" given', gettype($populationLevel)), __LINE__);
}
$this->populationLevel = $populationLevel;
return $this;
}
/**
* Get inDomainId value
* @return string|null
*/
public function getInDomainId()
{
return $this->inDomainId;
}
/**
* Set inDomainId value
* @param string $inDomainId
* @return GetUserByUserName
*/
public function setInDomainId($inDomainId = null)
{
// validation for constraint: string
if (!is_null($inDomainId) && !is_string($inDomainId)) {
throw new \InvalidArgumentException(sprintf('Invalid value, please provide a string, "%s" given', gettype($inDomainId)), __LINE__);
}
$this->inDomainId = $inDomainId;
return $this;
}
/**
* Get usrName value
* @return string|null
*/
public function getUsrName()
{
return $this->usrName;
}
/**
* Set usrName value
* @param string $usrName
* @return GetUserByUserName
*/
public function setUsrName($usrName = null)
{
// validation for constraint: string
if (!is_null($usrName) && !is_string($usrName)) {
throw new \InvalidArgumentException(sprintf('Invalid value, please provide a string, "%s" given', gettype($usrName)), __LINE__);
}
$this->usrName = $usrName;
return $this;
}
/**
* Method called when an object has been exported with var_export() functions
* It allows to return an object instantiated with the values
* @see AbstractStructBase::__set_state()
* @uses AbstractStructBase::__set_state()
* @param array $array the exported values
* @return GetUserByUserName
*/
public static function __set_state(array $array)
{
return parent::__set_state($array);
}
/**
* Method returning the class name
* @return string __CLASS__
*/
public function __toString()
{
return __CLASS__;
}
}
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