<?php

namespace Sabre\CreatePassengerNameRecord\Structs;

use \WsdlToPhp\PackageBase\AbstractStructBase;

/**
 * This class stands for NetRemits Structs
 * @subpackage Structs
 */
class NetRemits extends AbstractStructBase
{
    /**
     * The NetRemit
     * Meta informations extracted from the WSDL
     * - maxOccurs: unbounded
     * - minOccurs: 0
     * @var \Sabre\CreatePassengerNameRecord\Structs\NetRemit[]
     */
    public $NetRemit;
    /**
     * Constructor method for NetRemits
     * @uses NetRemits::setNetRemit()
     * @param \Sabre\CreatePassengerNameRecord\Structs\NetRemit[] $netRemit
     */
    public function __construct(array $netRemit = array())
    {
        $this
            ->setNetRemit($netRemit);
    }
    /**
     * Get NetRemit value
     * @return \Sabre\CreatePassengerNameRecord\Structs\NetRemit[]|null
     */
    public function getNetRemit()
    {
        return $this->NetRemit;
    }
    /**
     * Set NetRemit value
     * @throws \InvalidArgumentException
     * @param \Sabre\CreatePassengerNameRecord\Structs\NetRemit[] $netRemit
     * @return \Sabre\CreatePassengerNameRecord\Structs\NetRemits
     */
    public function setNetRemit(array $netRemit = array())
    {
        $this->NetRemit = $netRemit;
        return $this;
    }
    /**
     * Add item to NetRemit value
     * @throws \InvalidArgumentException
     * @param \Sabre\CreatePassengerNameRecord\Structs\NetRemit $item
     * @return \Sabre\CreatePassengerNameRecord\Structs\NetRemits
     */
    public function addToNetRemit(\Sabre\CreatePassengerNameRecord\Structs\NetRemit $item)
    {
        $this->NetRemit[] = $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\CreatePassengerNameRecord\Structs\NetRemits
     */
    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__;
    }
}
