<?php

namespace Sabre\OTAAirAvail\Structs;

use \WsdlToPhp\PackageBase\AbstractStructBase;

/**
 * This class stands for MarketingAirline Structs
 * @subpackage Structs
 */
class MarketingAirline extends AbstractStructBase
{
    /**
     * The Code
     * Meta informations extracted from the WSDL
     * - use: optional
     * @var string
     */
    public $Code;
    /**
     * The FlightNumber
     * Meta informations extracted from the WSDL
     * - use: optional
     * @var string
     */
    public $FlightNumber;
    /**
     * The ParticipationLevel
     * Meta informations extracted from the WSDL
     * - use: optional
     * @var string
     */
    public $ParticipationLevel;
    /**
     * Constructor method for MarketingAirline
     * @uses MarketingAirline::setCode()
     * @uses MarketingAirline::setFlightNumber()
     * @uses MarketingAirline::setParticipationLevel()
     * @param string $code
     * @param string $flightNumber
     * @param string $participationLevel
     */
    public function __construct($code = null, $flightNumber = null, $participationLevel = null)
    {
        $this
            ->setCode($code)
            ->setFlightNumber($flightNumber)
            ->setParticipationLevel($participationLevel);
    }
    /**
     * Get Code value
     * @return string|null
     */
    public function getCode()
    {
        return $this->Code;
    }
    /**
     * Set Code value
     * @param string $code
     * @return \Sabre\OTAAirAvail\Structs\MarketingAirline
     */
    public function setCode($code = null)
    {
        $this->Code = $code;
        return $this;
    }
    /**
     * Get FlightNumber value
     * @return string|null
     */
    public function getFlightNumber()
    {
        return $this->FlightNumber;
    }
    /**
     * Set FlightNumber value
     * @param string $flightNumber
     * @return \Sabre\OTAAirAvail\Structs\MarketingAirline
     */
    public function setFlightNumber($flightNumber = null)
    {
        $this->FlightNumber = $flightNumber;
        return $this;
    }
    /**
     * Get ParticipationLevel value
     * @return string|null
     */
    public function getParticipationLevel()
    {
        return $this->ParticipationLevel;
    }
    /**
     * Set ParticipationLevel value
     * @param string $participationLevel
     * @return \Sabre\OTAAirAvail\Structs\MarketingAirline
     */
    public function setParticipationLevel($participationLevel = null)
    {
        $this->ParticipationLevel = $participationLevel;
        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\OTAAirAvail\Structs\MarketingAirline
     */
    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__;
    }
}
