xxxxxxxxxx
namespace GLS;
use \WsdlToPhp\PackageBase\AbstractStructBase;
/**
* This class stands for cProfile Struct
* @subpackage Structs
*/
class CProfile extends AbstractStructBase
{
/**
* The id
* Meta information extracted from the WSDL
* - maxOccurs: 1
* - minOccurs: 1
* @var int
*/
public $id;
/**
* The desc
* Meta information extracted from the WSDL
* - maxOccurs: 1
* - minOccurs: 1
* @var string
*/
public $desc;
/**
* Constructor method for cProfile
* @uses CProfile::setId()
* @uses CProfile::setDesc()
* @param int $id
* @param string $desc
*/
public function __construct($id = null, $desc = null)
{
$this
->setId($id)
->setDesc($desc);
}
/**
* Get id value
* @return int
*/
public function getId()
{
return $this->id;
}
/**
* Set id value
* @param int $id
* @return \GLS\CProfile
*/
public function setId($id = null)
{
// validation for constraint: int
if (!is_null($id) && !(is_int($id) || ctype_digit($id))) {
throw new \InvalidArgumentException(sprintf('Invalid value %s, please provide an integer value, %s given', var_export($id, true), gettype($id)), __LINE__);
}
$this->id = $id;
return $this;
}
/**
* Get desc value
* @return string
*/
public function getDesc()
{
return $this->desc;
}
/**
* Set desc value
* @param string $desc
* @return \GLS\CProfile
*/
public function setDesc($desc = null)
{
// validation for constraint: string
if (!is_null($desc) && !is_string($desc)) {
throw new \InvalidArgumentException(sprintf('Invalid value %s, please provide a string, %s given', var_export($desc, true), gettype($desc)), __LINE__);
}
$this->desc = $desc;
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