<?php

namespace StructType;

use \WsdlToPhp\PackageBase\AbstractStructBase;

/**
 * This class stands for JP_PackageElement StructType
 * @subpackage Structs
 */
class JP_PackageElement extends JP_BaseElement
{
    /**
     * The PackageBookingInfo
     * Meta informations extracted from the WSDL
     * - maxOccurs: 1
     * - minOccurs: 0
     * @var \StructType\JP_PackageBookingInfo
     */
    public $PackageBookingInfo;
    /**
     * The TransfersBookingInfo
     * Meta informations extracted from the WSDL
     * - maxOccurs: 1
     * - minOccurs: 0
     * @var \ArrayType\ArrayOfJP_TransferBookingInfo
     */
    public $TransfersBookingInfo;
    /**
     * The ServicesBookingInfo
     * Meta informations extracted from the WSDL
     * - maxOccurs: 1
     * - minOccurs: 0
     * @var \ArrayType\ArrayOfJP_ServiceBookingInfo
     */
    public $ServicesBookingInfo;
    /**
     * Constructor method for JP_PackageElement
     * @uses JP_PackageElement::setPackageBookingInfo()
     * @uses JP_PackageElement::setTransfersBookingInfo()
     * @uses JP_PackageElement::setServicesBookingInfo()
     * @param \StructType\JP_PackageBookingInfo $packageBookingInfo
     * @param \ArrayType\ArrayOfJP_TransferBookingInfo $transfersBookingInfo
     * @param \ArrayType\ArrayOfJP_ServiceBookingInfo $servicesBookingInfo
     */
    public function __construct(\StructType\JP_PackageBookingInfo $packageBookingInfo = null, \ArrayType\ArrayOfJP_TransferBookingInfo $transfersBookingInfo = null, \ArrayType\ArrayOfJP_ServiceBookingInfo $servicesBookingInfo = null)
    {
        $this
            ->setPackageBookingInfo($packageBookingInfo)
            ->setTransfersBookingInfo($transfersBookingInfo)
            ->setServicesBookingInfo($servicesBookingInfo);
    }
    /**
     * Get PackageBookingInfo value
     * @return \StructType\JP_PackageBookingInfo|null
     */
    public function getPackageBookingInfo()
    {
        return $this->PackageBookingInfo;
    }
    /**
     * Set PackageBookingInfo value
     * @param \StructType\JP_PackageBookingInfo $packageBookingInfo
     * @return \StructType\JP_PackageElement
     */
    public function setPackageBookingInfo(\StructType\JP_PackageBookingInfo $packageBookingInfo = null)
    {
        $this->PackageBookingInfo = $packageBookingInfo;
        return $this;
    }
    /**
     * Get TransfersBookingInfo value
     * @return \ArrayType\ArrayOfJP_TransferBookingInfo|null
     */
    public function getTransfersBookingInfo()
    {
        return $this->TransfersBookingInfo;
    }
    /**
     * Set TransfersBookingInfo value
     * @param \ArrayType\ArrayOfJP_TransferBookingInfo $transfersBookingInfo
     * @return \StructType\JP_PackageElement
     */
    public function setTransfersBookingInfo(\ArrayType\ArrayOfJP_TransferBookingInfo $transfersBookingInfo = null)
    {
        $this->TransfersBookingInfo = $transfersBookingInfo;
        return $this;
    }
    /**
     * Get ServicesBookingInfo value
     * @return \ArrayType\ArrayOfJP_ServiceBookingInfo|null
     */
    public function getServicesBookingInfo()
    {
        return $this->ServicesBookingInfo;
    }
    /**
     * Set ServicesBookingInfo value
     * @param \ArrayType\ArrayOfJP_ServiceBookingInfo $servicesBookingInfo
     * @return \StructType\JP_PackageElement
     */
    public function setServicesBookingInfo(\ArrayType\ArrayOfJP_ServiceBookingInfo $servicesBookingInfo = null)
    {
        $this->ServicesBookingInfo = $servicesBookingInfo;
        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 \StructType\JP_PackageElement
     */
    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__;
    }
}
