<?php

namespace StructType;

use \WsdlToPhp\PackageBase\AbstractStructBase;

/**
 * This class stands for JP_OptionalDescriptions StructType
 * @subpackage Structs
 */
class JP_OptionalDescriptions extends AbstractStructBase
{
    /**
     * The OptionalFaresDescription
     * Meta informations extracted from the WSDL
     * - maxOccurs: 1
     * - minOccurs: 0
     * @var \StructType\JP_OptionalFaresDescriptions
     */
    public $OptionalFaresDescription;
    /**
     * Constructor method for JP_OptionalDescriptions
     * @uses JP_OptionalDescriptions::setOptionalFaresDescription()
     * @param \StructType\JP_OptionalFaresDescriptions $optionalFaresDescription
     */
    public function __construct(\StructType\JP_OptionalFaresDescriptions $optionalFaresDescription = null)
    {
        $this
            ->setOptionalFaresDescription($optionalFaresDescription);
    }
    /**
     * Get OptionalFaresDescription value
     * @return \StructType\JP_OptionalFaresDescriptions|null
     */
    public function getOptionalFaresDescription()
    {
        return $this->OptionalFaresDescription;
    }
    /**
     * Set OptionalFaresDescription value
     * @param \StructType\JP_OptionalFaresDescriptions $optionalFaresDescription
     * @return \StructType\JP_OptionalDescriptions
     */
    public function setOptionalFaresDescription(\StructType\JP_OptionalFaresDescriptions $optionalFaresDescription = null)
    {
        $this->OptionalFaresDescription = $optionalFaresDescription;
        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_OptionalDescriptions
     */
    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__;
    }
}
