<?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;
    }
}
