xxxxxxxxxx
use \WsdlToPhp\PackageBase\AbstractStructBase;
/**
* This class stands for DomainUserPropertyBase StructType
* @subpackage Structs
*/
abstract class DomainUserPropertyBase extends Entity
{
/**
* The IsPrimary
* Meta informations extracted from the WSDL
* - maxOccurs: 1
* - minOccurs: 1
* @var bool
*/
public $IsPrimary;
/**
* The Id
* Meta informations extracted from the WSDL
* - maxOccurs: 1
* - minOccurs: 0
* @var string
*/
public $Id;
/**
* The DomainId
* Meta informations extracted from the WSDL
* - maxOccurs: 1
* - minOccurs: 0
* @var string
*/
public $DomainId;
/**
* The Domain
* Meta informations extracted from the WSDL
* - maxOccurs: 1
* - minOccurs: 0
* @var Domain
*/
public $Domain;
/**
* The UserId
* Meta informations extracted from the WSDL
* - maxOccurs: 1
* - minOccurs: 0
* @var string
*/
public $UserId;
/**
* The User
* Meta informations extracted from the WSDL
* - maxOccurs: 1
* - minOccurs: 0
* @var User
*/
public $User;
/**
* The SecurityRoleId
* Meta informations extracted from the WSDL
* - maxOccurs: 1
* - minOccurs: 0
* @var string
*/
public $SecurityRoleId;
/**
* The SecurityRole
* Meta informations extracted from the WSDL
* - maxOccurs: 1
* - minOccurs: 0
* @var SecurityRole
*/
public $SecurityRole;
/**
* Constructor method for DomainUserPropertyBase
* @uses DomainUserPropertyBase::setIsPrimary()
* @uses DomainUserPropertyBase::setId()
* @uses DomainUserPropertyBase::setDomainId()
* @uses DomainUserPropertyBase::setDomain()
* @uses DomainUserPropertyBase::setUserId()
* @uses DomainUserPropertyBase::setUser()
* @uses DomainUserPropertyBase::setSecurityRoleId()
* @uses DomainUserPropertyBase::setSecurityRole()
* @param bool $isPrimary
* @param string $id
* @param string $domainId
* @param Domain $domain
* @param string $userId
* @param User $user
* @param string $securityRoleId
* @param SecurityRole $securityRole
*/
public function __construct($isPrimary = null, $id = null, $domainId = null, Domain $domain = null, $userId = null, User $user = null, $securityRoleId = null, SecurityRole $securityRole = null)
{
$this
->setIsPrimary($isPrimary)
->setId($id)
->setDomainId($domainId)
->setDomain($domain)
->setUserId($userId)
->setUser($user)
->setSecurityRoleId($securityRoleId)
->setSecurityRole($securityRole);
}
/**
* Get IsPrimary value
* @return bool
*/
public function getIsPrimary()
{
return $this->IsPrimary;
}
/**
* Set IsPrimary value
* @param bool $isPrimary
* @return DomainUserPropertyBase
*/
public function setIsPrimary($isPrimary = null)
{
$this->IsPrimary = $isPrimary;
return $this;
}
/**
* Get Id value
* @return string|null
*/
public function getId()
{
return $this->Id;
}
/**
* Set Id value
* @param string $id
* @return DomainUserPropertyBase
*/
public function setId($id = null)
{
// validation for constraint: string
if (!is_null($id) && !is_string($id)) {
throw new \InvalidArgumentException(sprintf('Invalid value, please provide a string, "%s" given', gettype($id)), __LINE__);
}
$this->Id = $id;
return $this;
}
/**
* Get DomainId value
* @return string|null
*/
public function getDomainId()
{
return $this->DomainId;
}
/**
* Set DomainId value
* @param string $domainId
* @return DomainUserPropertyBase
*/
public function setDomainId($domainId = null)
{
// validation for constraint: string
if (!is_null($domainId) && !is_string($domainId)) {
throw new \InvalidArgumentException(sprintf('Invalid value, please provide a string, "%s" given', gettype($domainId)), __LINE__);
}
$this->DomainId = $domainId;
return $this;
}
/**
* Get Domain value
* @return Domain|null
*/
public function getDomain()
{
return $this->Domain;
}
/**
* Set Domain value
* @param Domain $domain
* @return DomainUserPropertyBase
*/
public function setDomain(Domain $domain = null)
{
$this->Domain = $domain;
return $this;
}
/**
* Get UserId value
* @return string|null
*/
public function getUserId()
{
return $this->UserId;
}
/**
* Set UserId value
* @param string $userId
* @return DomainUserPropertyBase
*/
public function setUserId($userId = null)
{
// validation for constraint: string
if (!is_null($userId) && !is_string($userId)) {
throw new \InvalidArgumentException(sprintf('Invalid value, please provide a string, "%s" given', gettype($userId)), __LINE__);
}
$this->UserId = $userId;
return $this;
}
/**
* Get User value
* @return User|null
*/
public function getUser()
{
return $this->User;
}
/**
* Set User value
* @param User $user
* @return DomainUserPropertyBase
*/
public function setUser(User $user = null)
{
$this->User = $user;
return $this;
}
/**
* Get SecurityRoleId value
* @return string|null
*/
public function getSecurityRoleId()
{
return $this->SecurityRoleId;
}
/**
* Set SecurityRoleId value
* @param string $securityRoleId
* @return DomainUserPropertyBase
*/
public function setSecurityRoleId($securityRoleId = null)
{
// validation for constraint: string
if (!is_null($securityRoleId) && !is_string($securityRoleId)) {
throw new \InvalidArgumentException(sprintf('Invalid value, please provide a string, "%s" given', gettype($securityRoleId)), __LINE__);
}
$this->SecurityRoleId = $securityRoleId;
return $this;
}
/**
* Get SecurityRole value
* @return SecurityRole|null
*/
public function getSecurityRole()
{
return $this->SecurityRole;
}
/**
* Set SecurityRole value
* @param SecurityRole $securityRole
* @return DomainUserPropertyBase
*/
public function setSecurityRole(SecurityRole $securityRole = null)
{
$this->SecurityRole = $securityRole;
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 DomainUserPropertyBase
*/
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