xxxxxxxxxx
use \WsdlToPhp\PackageBase\AbstractStructBase;
/**
* This class stands for Agent StructType
* Meta informations extracted from the WSDL
* - nillable: true
* - type: tns:Agent
* @subpackage Structs
*/
class Agent extends AbstractStructBase
{
/**
* The Code
* Meta informations extracted from the WSDL
* - minOccurs: 0
* - nillable: true
* @var string
*/
public $Code;
/**
* The Email
* Meta informations extracted from the WSDL
* - minOccurs: 0
* - nillable: true
* @var string
*/
public $Email;
/**
* The IdIason
* Meta informations extracted from the WSDL
* - minOccurs: 0
* - nillable: true
* @var string
*/
public $IdIason;
/**
* The Name
* Meta informations extracted from the WSDL
* - minOccurs: 0
* - nillable: true
* @var string
*/
public $Name;
/**
* The PersonalNumber
* Meta informations extracted from the WSDL
* - minOccurs: 0
* - nillable: true
* @var string
*/
public $PersonalNumber;
/**
* The Phone
* Meta informations extracted from the WSDL
* - minOccurs: 0
* - nillable: true
* @var string
*/
public $Phone;
/**
* Constructor method for Agent
* @uses Agent::setCode()
* @uses Agent::setEmail()
* @uses Agent::setIdIason()
* @uses Agent::setName()
* @uses Agent::setPersonalNumber()
* @uses Agent::setPhone()
* @param string $code
* @param string $email
* @param string $idIason
* @param string $name
* @param string $personalNumber
* @param string $phone
*/
public function __construct($code = null, $email = null, $idIason = null, $name = null, $personalNumber = null, $phone = null)
{
$this
->setCode($code)
->setEmail($email)
->setIdIason($idIason)
->setName($name)
->setPersonalNumber($personalNumber)
->setPhone($phone);
}
/**
* Get Code 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 getCode()
{
return isset($this->Code) ? $this->Code : null;
}
/**
* Set Code 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 $code
* @return Agent
*/
public function setCode($code = null)
{
if (is_null($code) || (is_array($code) && empty($code))) {
unset($this->Code);
} else {
$this->Code = $code;
}
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 Agent
*/
public function setEmail($email = null)
{
if (is_null($email) || (is_array($email) && empty($email))) {
unset($this->Email);
} else {
$this->Email = $email;
}
return $this;
}
/**
* Get IdIason 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 getIdIason()
{
return isset($this->IdIason) ? $this->IdIason : null;
}
/**
* Set IdIason 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 $idIason
* @return Agent
*/
public function setIdIason($idIason = null)
{
if (is_null($idIason) || (is_array($idIason) && empty($idIason))) {
unset($this->IdIason);
} else {
$this->IdIason = $idIason;
}
return $this;
}
/**
* Get Name 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 getName()
{
return isset($this->Name) ? $this->Name : null;
}
/**
* Set Name 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 $name
* @return Agent
*/
public function setName($name = null)
{
if (is_null($name) || (is_array($name) && empty($name))) {
unset($this->Name);
} else {
$this->Name = $name;
}
return $this;
}
/**
* Get PersonalNumber 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 getPersonalNumber()
{
return isset($this->PersonalNumber) ? $this->PersonalNumber : null;
}
/**
* Set PersonalNumber 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 $personalNumber
* @return Agent
*/
public function setPersonalNumber($personalNumber = null)
{
if (is_null($personalNumber) || (is_array($personalNumber) && empty($personalNumber))) {
unset($this->PersonalNumber);
} else {
$this->PersonalNumber = $personalNumber;
}
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 Agent
*/
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 Agent
*/
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