<?php

namespace Sabre\BargainFinderMax\Structs;

use \WsdlToPhp\PackageBase\AbstractStructBase;

/**
 * This class stands for SellingFareDataList Structs
 * @subpackage Structs
 */
class SellingFareDataList extends AbstractStructBase
{
    /**
     * The SellingFareData
     * Meta informations extracted from the WSDL
     * - maxOccurs: unbounded
     * @var \Sabre\BargainFinderMax\Structs\SellingFareDataType[]
     */
    public $SellingFareData;
    /**
     * Constructor method for SellingFareDataList
     * @uses SellingFareDataList::setSellingFareData()
     * @param \Sabre\BargainFinderMax\Structs\SellingFareDataType[] $sellingFareData
     */
    public function __construct(array $sellingFareData = array())
    {
        $this
            ->setSellingFareData($sellingFareData);
    }
    /**
     * Get SellingFareData value
     * @return \Sabre\BargainFinderMax\Structs\SellingFareDataType[]|null
     */
    public function getSellingFareData()
    {
        return $this->SellingFareData;
    }
    /**
     * Set SellingFareData value
     * @throws \InvalidArgumentException
     * @param \Sabre\BargainFinderMax\Structs\SellingFareDataType[] $sellingFareData
     * @return \Sabre\BargainFinderMax\Structs\SellingFareDataList
     */
    public function setSellingFareData(array $sellingFareData = array())
    {
        $this->SellingFareData = $sellingFareData;
        return $this;
    }
    /**
     * Add item to SellingFareData value
     * @throws \InvalidArgumentException
     * @param \Sabre\BargainFinderMax\Structs\SellingFareDataType $item
     * @return \Sabre\BargainFinderMax\Structs\SellingFareDataList
     */
    public function addToSellingFareData(\Sabre\BargainFinderMax\Structs\SellingFareDataType $item)
    {
        $this->SellingFareData[] = $item;
        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\SellingFareDataList
     */
    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__;
    }
}
