<?php

namespace StructType;

use \WsdlToPhp\PackageBase\AbstractStructBase;

/**
 * This class stands for JP_OptionalFaresDescriptions StructType
 * @subpackage Structs
 */
class JP_OptionalFaresDescriptions extends AbstractStructBase
{
    /**
     * The FareGroupTypes
     * Meta information extracted from the WSDL
     * - maxOccurs: 1
     * - minOccurs: 0
     * @var \ArrayType\ArrayOfJP_FareGroupType
     */
    public $FareGroupTypes;
    /**
     * The FareGroupPriceApplications
     * Meta information extracted from the WSDL
     * - maxOccurs: 1
     * - minOccurs: 0
     * @var \ArrayType\ArrayOfJP_FareGroupPriceApplication
     */
    public $FareGroupPriceApplications;
    /**
     * Constructor method for JP_OptionalFaresDescriptions
     * @uses JP_OptionalFaresDescriptions::setFareGroupTypes()
     * @uses JP_OptionalFaresDescriptions::setFareGroupPriceApplications()
     * @param \ArrayType\ArrayOfJP_FareGroupType $fareGroupTypes
     * @param \ArrayType\ArrayOfJP_FareGroupPriceApplication $fareGroupPriceApplications
     */
    public function __construct(\ArrayType\ArrayOfJP_FareGroupType $fareGroupTypes = null, \ArrayType\ArrayOfJP_FareGroupPriceApplication $fareGroupPriceApplications = null)
    {
        $this
            ->setFareGroupTypes($fareGroupTypes)
            ->setFareGroupPriceApplications($fareGroupPriceApplications);
    }
    /**
     * Get FareGroupTypes value
     * @return \ArrayType\ArrayOfJP_FareGroupType|null
     */
    public function getFareGroupTypes()
    {
        return $this->FareGroupTypes;
    }
    /**
     * Set FareGroupTypes value
     * @param \ArrayType\ArrayOfJP_FareGroupType $fareGroupTypes
     * @return \StructType\JP_OptionalFaresDescriptions
     */
    public function setFareGroupTypes(\ArrayType\ArrayOfJP_FareGroupType $fareGroupTypes = null)
    {
        $this->FareGroupTypes = $fareGroupTypes;
        return $this;
    }
    /**
     * Get FareGroupPriceApplications value
     * @return \ArrayType\ArrayOfJP_FareGroupPriceApplication|null
     */
    public function getFareGroupPriceApplications()
    {
        return $this->FareGroupPriceApplications;
    }
    /**
     * Set FareGroupPriceApplications value
     * @param \ArrayType\ArrayOfJP_FareGroupPriceApplication $fareGroupPriceApplications
     * @return \StructType\JP_OptionalFaresDescriptions
     */
    public function setFareGroupPriceApplications(\ArrayType\ArrayOfJP_FareGroupPriceApplication $fareGroupPriceApplications = null)
    {
        $this->FareGroupPriceApplications = $fareGroupPriceApplications;
        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_OptionalFaresDescriptions
     */
    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__;
    }
}
