xxxxxxxxxx
namespace Sabre\PassengerDetailsRQ\Structs;
use \WsdlToPhp\PackageBase\AbstractStructBase;
/**
* This class stands for CardHolder Structs
* @subpackage Structs
*/
class CardHolder extends AbstractStructBase
{
/**
* The PersonName
* Meta informations extracted from the WSDL
* - minOccurs: 0
* @var \Sabre\PassengerDetailsRQ\Structs\PersonNameType
*/
public $PersonName;
/**
* The Address
* Meta informations extracted from the WSDL
* - minOccurs: 0
* @var \Sabre\PassengerDetailsRQ\Structs\AddressType
*/
public $Address;
/**
* The Telephone
* Meta informations extracted from the WSDL
* - maxOccurs: unbounded
* - minOccurs: 0
* @var \Sabre\PassengerDetailsRQ\Structs\PhoneType[]
*/
public $Telephone;
/**
* The Email
* Meta informations extracted from the WSDL
* - maxOccurs: unbounded
* - minOccurs: 0
* @var string[]
*/
public $Email;
/**
* Constructor method for CardHolder
* @uses CardHolder::setPersonName()
* @uses CardHolder::setAddress()
* @uses CardHolder::setTelephone()
* @uses CardHolder::setEmail()
* @param \Sabre\PassengerDetailsRQ\Structs\PersonNameType $personName
* @param \Sabre\PassengerDetailsRQ\Structs\AddressType $address
* @param \Sabre\PassengerDetailsRQ\Structs\PhoneType[] $telephone
* @param string[] $email
*/
public function __construct(\Sabre\PassengerDetailsRQ\Structs\PersonNameType $personName = null, \Sabre\PassengerDetailsRQ\Structs\AddressType $address = null, array $telephone = array(), array $email = array())
{
$this
->setPersonName($personName)
->setAddress($address)
->setTelephone($telephone)
->setEmail($email);
}
/**
* Get PersonName value
* @return \Sabre\PassengerDetailsRQ\Structs\PersonNameType|null
*/
public function getPersonName()
{
return $this->PersonName;
}
/**
* Set PersonName value
* @param \Sabre\PassengerDetailsRQ\Structs\PersonNameType $personName
* @return \Sabre\PassengerDetailsRQ\Structs\CardHolder
*/
public function setPersonName(\Sabre\PassengerDetailsRQ\Structs\PersonNameType $personName = null)
{
$this->PersonName = $personName;
return $this;
}
/**
* Get Address value
* @return \Sabre\PassengerDetailsRQ\Structs\AddressType|null
*/
public function getAddress()
{
return $this->Address;
}
/**
* Set Address value
* @param \Sabre\PassengerDetailsRQ\Structs\AddressType $address
* @return \Sabre\PassengerDetailsRQ\Structs\CardHolder
*/
public function setAddress(\Sabre\PassengerDetailsRQ\Structs\AddressType $address = null)
{
$this->Address = $address;
return $this;
}
/**
* Get Telephone value
* @return \Sabre\PassengerDetailsRQ\Structs\PhoneType[]|null
*/
public function getTelephone()
{
return $this->Telephone;
}
/**
* Set Telephone value
* @throws \InvalidArgumentException
* @param \Sabre\PassengerDetailsRQ\Structs\PhoneType[] $telephone
* @return \Sabre\PassengerDetailsRQ\Structs\CardHolder
*/
public function setTelephone(array $telephone = array())
{
$this->Telephone = $telephone;
return $this;
}
/**
* Add item to Telephone value
* @throws \InvalidArgumentException
* @param \Sabre\PassengerDetailsRQ\Structs\PhoneType $item
* @return \Sabre\PassengerDetailsRQ\Structs\CardHolder
*/
public function addToTelephone(\Sabre\PassengerDetailsRQ\Structs\PhoneType $item)
{
$this->Telephone[] = $item;
return $this;
}
/**
* Get Email value
* @return string[]|null
*/
public function getEmail()
{
return $this->Email;
}
/**
* Set Email value
* @throws \InvalidArgumentException
* @param string[] $email
* @return \Sabre\PassengerDetailsRQ\Structs\CardHolder
*/
public function setEmail(array $email = array())
{
$this->Email = $email;
return $this;
}
/**
* Add item to Email value
* @throws \InvalidArgumentException
* @param string $item
* @return \Sabre\PassengerDetailsRQ\Structs\CardHolder
*/
public function addToEmail($item)
{
$this->Email[] = $item;
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 \Sabre\PassengerDetailsRQ\Structs\CardHolder
*/
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