xxxxxxxxxx
use \WsdlToPhp\PackageBase\AbstractStructBase;
/**
* This class stands for PolicyHolder StructType
* Meta informations extracted from the WSDL
* - nillable: true
* - type: tns:PolicyHolder
* @subpackage Structs
*/
class PolicyHolder extends AbstractStructBase
{
/**
* The CompanyName
* Meta informations extracted from the WSDL
* - minOccurs: 0
* - nillable: true
* @var string
*/
public $CompanyName;
/**
* The Email
* Meta informations extracted from the WSDL
* - minOccurs: 0
* - nillable: true
* @var string
*/
public $Email;
/**
* The FirstName
* Meta informations extracted from the WSDL
* - minOccurs: 0
* - nillable: true
* @var string
*/
public $FirstName;
/**
* The LastName
* Meta informations extracted from the WSDL
* - minOccurs: 0
* - nillable: true
* @var string
*/
public $LastName;
/**
* The Phone
* Meta informations extracted from the WSDL
* - minOccurs: 0
* - nillable: true
* @var string
*/
public $Phone;
/**
* Constructor method for PolicyHolder
* @uses PolicyHolder::setCompanyName()
* @uses PolicyHolder::setEmail()
* @uses PolicyHolder::setFirstName()
* @uses PolicyHolder::setLastName()
* @uses PolicyHolder::setPhone()
* @param string $companyName
* @param string $email
* @param string $firstName
* @param string $lastName
* @param string $phone
*/
public function __construct($companyName = null, $email = null, $firstName = null, $lastName = null, $phone = null)
{
$this
->setCompanyName($companyName)
->setEmail($email)
->setFirstName($firstName)
->setLastName($lastName)
->setPhone($phone);
}
/**
* Get CompanyName value
* An additional test has been added (isset) before returning the property value as
* this property may have been unset before, due to the fact that this property is
* removable from the request (nillable=true+minOccurs=0)
* @return string|null
*/
public function getCompanyName()
{
return isset($this->CompanyName) ? $this->CompanyName : null;
}
/**
* Set CompanyName value
* This property is removable from request (nillable=true+minOccurs=0), therefore
* if the value assigned to this property is null, it is removed from this object
* @param string $companyName
* @return PolicyHolder
*/
public function setCompanyName($companyName = null)
{
if (is_null($companyName) || (is_array($companyName) && empty($companyName))) {
unset($this->CompanyName);
} else {
$this->CompanyName = $companyName;
}
return $this;
}
/**
* Get Email value
* An additional test has been added (isset) before returning the property value as
* this property may have been unset before, due to the fact that this property is
* removable from the request (nillable=true+minOccurs=0)
* @return string|null
*/
public function getEmail()
{
return isset($this->Email) ? $this->Email : null;
}
/**
* Set Email value
* This property is removable from request (nillable=true+minOccurs=0), therefore
* if the value assigned to this property is null, it is removed from this object
* @param string $email
* @return PolicyHolder
*/
public function setEmail($email = null)
{
if (is_null($email) || (is_array($email) && empty($email))) {
unset($this->Email);
} else {
$this->Email = $email;
}
return $this;
}
/**
* Get FirstName value
* An additional test has been added (isset) before returning the property value as
* this property may have been unset before, due to the fact that this property is
* removable from the request (nillable=true+minOccurs=0)
* @return string|null
*/
public function getFirstName()
{
return isset($this->FirstName) ? $this->FirstName : null;
}
/**
* Set FirstName value
* This property is removable from request (nillable=true+minOccurs=0), therefore
* if the value assigned to this property is null, it is removed from this object
* @param string $firstName
* @return PolicyHolder
*/
public function setFirstName($firstName = null)
{
if (is_null($firstName) || (is_array($firstName) && empty($firstName))) {
unset($this->FirstName);
} else {
$this->FirstName = $firstName;
}
return $this;
}
/**
* Get LastName value
* An additional test has been added (isset) before returning the property value as
* this property may have been unset before, due to the fact that this property is
* removable from the request (nillable=true+minOccurs=0)
* @return string|null
*/
public function getLastName()
{
return isset($this->LastName) ? $this->LastName : null;
}
/**
* Set LastName value
* This property is removable from request (nillable=true+minOccurs=0), therefore
* if the value assigned to this property is null, it is removed from this object
* @param string $lastName
* @return PolicyHolder
*/
public function setLastName($lastName = null)
{
if (is_null($lastName) || (is_array($lastName) && empty($lastName))) {
unset($this->LastName);
} else {
$this->LastName = $lastName;
}
return $this;
}
/**
* Get Phone value
* An additional test has been added (isset) before returning the property value as
* this property may have been unset before, due to the fact that this property is
* removable from the request (nillable=true+minOccurs=0)
* @return string|null
*/
public function getPhone()
{
return isset($this->Phone) ? $this->Phone : null;
}
/**
* Set Phone value
* This property is removable from request (nillable=true+minOccurs=0), therefore
* if the value assigned to this property is null, it is removed from this object
* @param string $phone
* @return PolicyHolder
*/
public function setPhone($phone = null)
{
if (is_null($phone) || (is_array($phone) && empty($phone))) {
unset($this->Phone);
} else {
$this->Phone = $phone;
}
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 PolicyHolder
*/
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