<?php

namespace Sabre\OTAPing\Structs;

use \WsdlToPhp\PackageBase\AbstractStructBase;

/**
 * This class stands for TravelerRPHs Structs
 * Meta informations extracted from the WSDL
 * - documentation: A container to relate individual travelers to an inventory or chargeable item.
 * @subpackage Structs
 */
class TravelerRPHs extends AbstractStructBase
{
    /**
     * The TravelerRPH
     * Meta informations extracted from the WSDL
     * - maxOccurs: 99
     * @var \Sabre\OTAPing\Structs\TravelerRPH[]
     */
    public $TravelerRPH;
    /**
     * Constructor method for TravelerRPHs
     * @uses TravelerRPHs::setTravelerRPH()
     * @param \Sabre\OTAPing\Structs\TravelerRPH[] $travelerRPH
     */
    public function __construct(array $travelerRPH = array())
    {
        $this
            ->setTravelerRPH($travelerRPH);
    }
    /**
     * Get TravelerRPH value
     * @return \Sabre\OTAPing\Structs\TravelerRPH[]|null
     */
    public function getTravelerRPH()
    {
        return $this->TravelerRPH;
    }
    /**
     * Set TravelerRPH value
     * @throws \InvalidArgumentException
     * @param \Sabre\OTAPing\Structs\TravelerRPH[] $travelerRPH
     * @return \Sabre\OTAPing\Structs\TravelerRPHs
     */
    public function setTravelerRPH(array $travelerRPH = array())
    {
        $this->TravelerRPH = $travelerRPH;
        return $this;
    }
    /**
     * Add item to TravelerRPH value
     * @throws \InvalidArgumentException
     * @param \Sabre\OTAPing\Structs\TravelerRPH $item
     * @return \Sabre\OTAPing\Structs\TravelerRPHs
     */
    public function addToTravelerRPH(\Sabre\OTAPing\Structs\TravelerRPH $item)
    {
        $this->TravelerRPH[] = $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\OTAPing\Structs\TravelerRPHs
     */
    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__;
    }
}
