<?php

namespace Sabre\CreatePassengerNameRecord\Structs;

use \WsdlToPhp\PackageBase\AbstractStructBase;

/**
 * This class stands for AdvancePassenger Structs
 * @subpackage Structs
 */
class AdvancePassenger extends AbstractStructBase
{
    /**
     * The Document
     * Meta informations extracted from the WSDL
     * - minOccurs: 0
     * @var \Sabre\CreatePassengerNameRecord\Structs\Document
     */
    public $Document;
    /**
     * The PersonName
     * Meta informations extracted from the WSDL
     * - minOccurs: 0
     * @var \Sabre\CreatePassengerNameRecord\Structs\PersonName
     */
    public $PersonName;
    /**
     * The ResidentDestinationAddress
     * Meta informations extracted from the WSDL
     * - minOccurs: 0
     * @var \Sabre\CreatePassengerNameRecord\Structs\ResidentDestinationAddress
     */
    public $ResidentDestinationAddress;
    /**
     * The VendorPrefs
     * Meta informations extracted from the WSDL
     * - minOccurs: 0
     * @var \Sabre\CreatePassengerNameRecord\Structs\VendorPrefs
     */
    public $VendorPrefs;
    /**
     * The SegmentNumber
     * Meta informations extracted from the WSDL
     * - use: optional
     * @var string
     */
    public $SegmentNumber;
    /**
     * Constructor method for AdvancePassenger
     * @uses AdvancePassenger::setDocument()
     * @uses AdvancePassenger::setPersonName()
     * @uses AdvancePassenger::setResidentDestinationAddress()
     * @uses AdvancePassenger::setVendorPrefs()
     * @uses AdvancePassenger::setSegmentNumber()
     * @param \Sabre\CreatePassengerNameRecord\Structs\Document $document
     * @param \Sabre\CreatePassengerNameRecord\Structs\PersonName $personName
     * @param \Sabre\CreatePassengerNameRecord\Structs\ResidentDestinationAddress $residentDestinationAddress
     * @param \Sabre\CreatePassengerNameRecord\Structs\VendorPrefs $vendorPrefs
     * @param string $segmentNumber
     */
    public function __construct(\Sabre\CreatePassengerNameRecord\Structs\Document $document = null, \Sabre\CreatePassengerNameRecord\Structs\PersonName $personName = null, \Sabre\CreatePassengerNameRecord\Structs\ResidentDestinationAddress $residentDestinationAddress = null, \Sabre\CreatePassengerNameRecord\Structs\VendorPrefs $vendorPrefs = null, $segmentNumber = null)
    {
        $this
            ->setDocument($document)
            ->setPersonName($personName)
            ->setResidentDestinationAddress($residentDestinationAddress)
            ->setVendorPrefs($vendorPrefs)
            ->setSegmentNumber($segmentNumber);
    }
    /**
     * Get Document value
     * @return \Sabre\CreatePassengerNameRecord\Structs\Document|null
     */
    public function getDocument()
    {
        return $this->Document;
    }
    /**
     * Set Document value
     * @param \Sabre\CreatePassengerNameRecord\Structs\Document $document
     * @return \Sabre\CreatePassengerNameRecord\Structs\AdvancePassenger
     */
    public function setDocument(\Sabre\CreatePassengerNameRecord\Structs\Document $document = null)
    {
        $this->Document = $document;
        return $this;
    }
    /**
     * Get PersonName value
     * @return \Sabre\CreatePassengerNameRecord\Structs\PersonName|null
     */
    public function getPersonName()
    {
        return $this->PersonName;
    }
    /**
     * Set PersonName value
     * @param \Sabre\CreatePassengerNameRecord\Structs\PersonName $personName
     * @return \Sabre\CreatePassengerNameRecord\Structs\AdvancePassenger
     */
    public function setPersonName(\Sabre\CreatePassengerNameRecord\Structs\PersonName $personName = null)
    {
        $this->PersonName = $personName;
        return $this;
    }
    /**
     * Get ResidentDestinationAddress value
     * @return \Sabre\CreatePassengerNameRecord\Structs\ResidentDestinationAddress|null
     */
    public function getResidentDestinationAddress()
    {
        return $this->ResidentDestinationAddress;
    }
    /**
     * Set ResidentDestinationAddress value
     * @param \Sabre\CreatePassengerNameRecord\Structs\ResidentDestinationAddress $residentDestinationAddress
     * @return \Sabre\CreatePassengerNameRecord\Structs\AdvancePassenger
     */
    public function setResidentDestinationAddress(\Sabre\CreatePassengerNameRecord\Structs\ResidentDestinationAddress $residentDestinationAddress = null)
    {
        $this->ResidentDestinationAddress = $residentDestinationAddress;
        return $this;
    }
    /**
     * Get VendorPrefs value
     * @return \Sabre\CreatePassengerNameRecord\Structs\VendorPrefs|null
     */
    public function getVendorPrefs()
    {
        return $this->VendorPrefs;
    }
    /**
     * Set VendorPrefs value
     * @param \Sabre\CreatePassengerNameRecord\Structs\VendorPrefs $vendorPrefs
     * @return \Sabre\CreatePassengerNameRecord\Structs\AdvancePassenger
     */
    public function setVendorPrefs(\Sabre\CreatePassengerNameRecord\Structs\VendorPrefs $vendorPrefs = null)
    {
        $this->VendorPrefs = $vendorPrefs;
        return $this;
    }
    /**
     * Get SegmentNumber value
     * @return string|null
     */
    public function getSegmentNumber()
    {
        return $this->SegmentNumber;
    }
    /**
     * Set SegmentNumber value
     * @param string $segmentNumber
     * @return \Sabre\CreatePassengerNameRecord\Structs\AdvancePassenger
     */
    public function setSegmentNumber($segmentNumber = null)
    {
        $this->SegmentNumber = $segmentNumber;
        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\CreatePassengerNameRecord\Structs\AdvancePassenger
     */
    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__;
    }
}
