<?php
use \WsdlToPhp\PackageBase\AbstractStructBase;

/**
 * This class stands for updateEnvelopeBufor StructType
 * @subpackage Structs
 */
class UpdateEnvelopeBufor extends AbstractStructBase
{
    /**
     * The bufor
     * Meta information extracted from the WSDL
     * - maxOccurs: unbounded
     * - minOccurs: 1
     * @var BuforType[]
     */
    public $bufor;
    /**
     * Constructor method for updateEnvelopeBufor
     * @uses UpdateEnvelopeBufor::setBufor()
     * @param BuforType[] $bufor
     */
    public function __construct(array $bufor = array())
    {
        $this
            ->setBufor($bufor);
    }
    /**
     * Get bufor value
     * @return BuforType[]
     */
    public function getBufor()
    {
        return $this->bufor;
    }
    /**
     * Set bufor value
     * @param BuforType[] $bufor
     * @return UpdateEnvelopeBufor
     */
    public function setBufor(array $bufor = array())
    {
        $this->bufor = $bufor;
        return $this;
    }
    /**
     * Add item to bufor value
     * @throws \InvalidArgumentException
     * @param BuforType $item
     * @return UpdateEnvelopeBufor
     */
    public function addToBufor(BuforType $item)
    {
        $this->bufor[] = $item;
        return $this;
    }
}
