<?php

namespace StructType;

use \WsdlToPhp\PackageBase\AbstractStructBase;

/**
 * This class stands for JPSOAP_RateDiscounts StructType
 * @subpackage Structs
 */
class JPSOAP_RateDiscounts extends AbstractStructBase
{
    /**
     * The AdultAdditionals
     * Meta informations extracted from the WSDL
     * - maxOccurs: 1
     * - minOccurs: 0
     * @var \ArrayType\ArrayOfJPSOAP_Discount
     */
    public $AdultAdditionals;
    /**
     * The ChildrenA
     * Meta informations extracted from the WSDL
     * - maxOccurs: 1
     * - minOccurs: 0
     * @var \ArrayType\ArrayOfJPSOAP_Discount1
     */
    public $ChildrenA;
    /**
     * The ChildrenB
     * Meta informations extracted from the WSDL
     * - maxOccurs: 1
     * - minOccurs: 0
     * @var \ArrayType\ArrayOfJPSOAP_Discount2
     */
    public $ChildrenB;
    /**
     * Constructor method for JPSOAP_RateDiscounts
     * @uses JPSOAP_RateDiscounts::setAdultAdditionals()
     * @uses JPSOAP_RateDiscounts::setChildrenA()
     * @uses JPSOAP_RateDiscounts::setChildrenB()
     * @param \ArrayType\ArrayOfJPSOAP_Discount $adultAdditionals
     * @param \ArrayType\ArrayOfJPSOAP_Discount1 $childrenA
     * @param \ArrayType\ArrayOfJPSOAP_Discount2 $childrenB
     */
    public function __construct(\ArrayType\ArrayOfJPSOAP_Discount $adultAdditionals = null, \ArrayType\ArrayOfJPSOAP_Discount1 $childrenA = null, \ArrayType\ArrayOfJPSOAP_Discount2 $childrenB = null)
    {
        $this
            ->setAdultAdditionals($adultAdditionals)
            ->setChildrenA($childrenA)
            ->setChildrenB($childrenB);
    }
    /**
     * Get AdultAdditionals value
     * @return \ArrayType\ArrayOfJPSOAP_Discount|null
     */
    public function getAdultAdditionals()
    {
        return $this->AdultAdditionals;
    }
    /**
     * Set AdultAdditionals value
     * @param \ArrayType\ArrayOfJPSOAP_Discount $adultAdditionals
     * @return \StructType\JPSOAP_RateDiscounts
     */
    public function setAdultAdditionals(\ArrayType\ArrayOfJPSOAP_Discount $adultAdditionals = null)
    {
        $this->AdultAdditionals = $adultAdditionals;
        return $this;
    }
    /**
     * Get ChildrenA value
     * @return \ArrayType\ArrayOfJPSOAP_Discount1|null
     */
    public function getChildrenA()
    {
        return $this->ChildrenA;
    }
    /**
     * Set ChildrenA value
     * @param \ArrayType\ArrayOfJPSOAP_Discount1 $childrenA
     * @return \StructType\JPSOAP_RateDiscounts
     */
    public function setChildrenA(\ArrayType\ArrayOfJPSOAP_Discount1 $childrenA = null)
    {
        $this->ChildrenA = $childrenA;
        return $this;
    }
    /**
     * Get ChildrenB value
     * @return \ArrayType\ArrayOfJPSOAP_Discount2|null
     */
    public function getChildrenB()
    {
        return $this->ChildrenB;
    }
    /**
     * Set ChildrenB value
     * @param \ArrayType\ArrayOfJPSOAP_Discount2 $childrenB
     * @return \StructType\JPSOAP_RateDiscounts
     */
    public function setChildrenB(\ArrayType\ArrayOfJPSOAP_Discount2 $childrenB = null)
    {
        $this->ChildrenB = $childrenB;
        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 \StructType\JPSOAP_RateDiscounts
     */
    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__;
    }
}
