<?php

namespace StructType;

use \WsdlToPhp\PackageBase\AbstractStructBase;

/**
 * This class stands for JPSOAP_RequiredOptionalSupplements StructType
 * @subpackage Structs
 */
class JPSOAP_RequiredOptionalSupplements extends AbstractStructBase
{
    /**
     * The SupplementCategories
     * Meta informations extracted from the WSDL
     * - maxOccurs: 1
     * - minOccurs: 0
     * @var \ArrayType\ArrayOfJPSOAP_IntCodeAttr
     */
    public $SupplementCategories;
    /**
     * The Supplements
     * Meta informations extracted from the WSDL
     * - maxOccurs: 1
     * - minOccurs: 0
     * @var \ArrayType\ArrayOfJPSOAP_IntCodeAttr1
     */
    public $Supplements;
    /**
     * Constructor method for JPSOAP_RequiredOptionalSupplements
     * @uses JPSOAP_RequiredOptionalSupplements::setSupplementCategories()
     * @uses JPSOAP_RequiredOptionalSupplements::setSupplements()
     * @param \ArrayType\ArrayOfJPSOAP_IntCodeAttr $supplementCategories
     * @param \ArrayType\ArrayOfJPSOAP_IntCodeAttr1 $supplements
     */
    public function __construct(\ArrayType\ArrayOfJPSOAP_IntCodeAttr $supplementCategories = null, \ArrayType\ArrayOfJPSOAP_IntCodeAttr1 $supplements = null)
    {
        $this
            ->setSupplementCategories($supplementCategories)
            ->setSupplements($supplements);
    }
    /**
     * Get SupplementCategories value
     * @return \ArrayType\ArrayOfJPSOAP_IntCodeAttr|null
     */
    public function getSupplementCategories()
    {
        return $this->SupplementCategories;
    }
    /**
     * Set SupplementCategories value
     * @param \ArrayType\ArrayOfJPSOAP_IntCodeAttr $supplementCategories
     * @return \StructType\JPSOAP_RequiredOptionalSupplements
     */
    public function setSupplementCategories(\ArrayType\ArrayOfJPSOAP_IntCodeAttr $supplementCategories = null)
    {
        $this->SupplementCategories = $supplementCategories;
        return $this;
    }
    /**
     * Get Supplements value
     * @return \ArrayType\ArrayOfJPSOAP_IntCodeAttr1|null
     */
    public function getSupplements()
    {
        return $this->Supplements;
    }
    /**
     * Set Supplements value
     * @param \ArrayType\ArrayOfJPSOAP_IntCodeAttr1 $supplements
     * @return \StructType\JPSOAP_RequiredOptionalSupplements
     */
    public function setSupplements(\ArrayType\ArrayOfJPSOAP_IntCodeAttr1 $supplements = null)
    {
        $this->Supplements = $supplements;
        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_RequiredOptionalSupplements
     */
    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__;
    }
}
