<?php
use \WsdlToPhp\PackageBase\AbstractStructBase;

/**
 * This class stands for updateParcelContent StructType
 * @subpackage Structs
 */
class UpdateParcelContent extends AbstractStructBase
{
    /**
     * The parcelContent
     * Meta information extracted from the WSDL
     * - maxOccurs: unbounded
     * - minOccurs: 1
     * @var ParcelContentType[]
     */
    public $parcelContent;
    /**
     * Constructor method for updateParcelContent
     * @uses UpdateParcelContent::setParcelContent()
     * @param ParcelContentType[] $parcelContent
     */
    public function __construct(array $parcelContent = array())
    {
        $this
            ->setParcelContent($parcelContent);
    }
    /**
     * Get parcelContent value
     * @return ParcelContentType[]
     */
    public function getParcelContent()
    {
        return $this->parcelContent;
    }
    /**
     * Set parcelContent value
     * @param ParcelContentType[] $parcelContent
     * @return UpdateParcelContent
     */
    public function setParcelContent(array $parcelContent = array())
    {
        $this->parcelContent = $parcelContent;
        return $this;
    }
    /**
     * Add item to parcelContent value
     * @throws \InvalidArgumentException
     * @param ParcelContentType $item
     * @return UpdateParcelContent
     */
    public function addToParcelContent(ParcelContentType $item)
    {
        $this->parcelContent[] = $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 UpdateParcelContent
     */
    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__;
    }
}
