<?php

namespace Sabre\BargainFinderMax\Structs;

use \WsdlToPhp\PackageBase\AbstractStructBase;

/**
 * This class stands for AirItineraryPricingInfo Structs
 * Meta informations extracted from the WSDL
 * - documentation: Pricing Information for an Air Itinerary. | Pricing Information for an Air Itinerary.
 * @subpackage Structs
 */
class AirItineraryPricingInfo extends AirItineraryPricingInfoType
{
    /**
     * The Tickets
     * Meta informations extracted from the WSDL
     * - documentation: Pricing information for multiple separate tickets | Pricing information for multiple separate tickets
     * - minOccurs: 0
     * @var \Sabre\BargainFinderMax\Structs\TicketsPricingType
     */
    public $Tickets;
    /**
     * Constructor method for AirItineraryPricingInfo
     * @uses AirItineraryPricingInfo::setTickets()
     * @param \Sabre\BargainFinderMax\Structs\TicketsPricingType $tickets
     */
    public function __construct(\Sabre\BargainFinderMax\Structs\TicketsPricingType $tickets = null)
    {
        $this
            ->setTickets($tickets);
    }
    /**
     * Get Tickets value
     * @return \Sabre\BargainFinderMax\Structs\TicketsPricingType|null
     */
    public function getTickets()
    {
        return $this->Tickets;
    }
    /**
     * Set Tickets value
     * @param \Sabre\BargainFinderMax\Structs\TicketsPricingType $tickets
     * @return \Sabre\BargainFinderMax\Structs\AirItineraryPricingInfo
     */
    public function setTickets(\Sabre\BargainFinderMax\Structs\TicketsPricingType $tickets = null)
    {
        $this->Tickets = $tickets;
        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\BargainFinderMax\Structs\AirItineraryPricingInfo
     */
    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__;
    }
}
