<?php

namespace Sabre\OTAAirPrice\Structs;

use \WsdlToPhp\PackageBase\AbstractStructBase;

/**
 * This class stands for InterlineAgreement Structs
 * @subpackage Structs
 */
class InterlineAgreement extends AbstractStructBase
{
    /**
     * The Type
     * Meta informations extracted from the WSDL
     * - use: optional
     * @var string
     */
    public $Type;
    /**
     * The CarrierCode
     * Meta informations extracted from the WSDL
     * - use: optional
     * @var string
     */
    public $CarrierCode;
    /**
     * Constructor method for InterlineAgreement
     * @uses InterlineAgreement::setType()
     * @uses InterlineAgreement::setCarrierCode()
     * @param string $type
     * @param string $carrierCode
     */
    public function __construct($type = null, $carrierCode = null)
    {
        $this
            ->setType($type)
            ->setCarrierCode($carrierCode);
    }
    /**
     * Get Type value
     * @return string|null
     */
    public function getType()
    {
        return $this->Type;
    }
    /**
     * Set Type value
     * @param string $type
     * @return \Sabre\OTAAirPrice\Structs\InterlineAgreement
     */
    public function setType($type = null)
    {
        $this->Type = $type;
        return $this;
    }
    /**
     * Get CarrierCode value
     * @return string|null
     */
    public function getCarrierCode()
    {
        return $this->CarrierCode;
    }
    /**
     * Set CarrierCode value
     * @param string $carrierCode
     * @return \Sabre\OTAAirPrice\Structs\InterlineAgreement
     */
    public function setCarrierCode($carrierCode = null)
    {
        $this->CarrierCode = $carrierCode;
        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\OTAAirPrice\Structs\InterlineAgreement
     */
    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__;
    }
}
