<?php
use \WsdlToPhp\PackageBase\AbstractStructBase;

/**
 * This class stands for createEnvelopeBufor StructType
 * @subpackage Structs
 */
class CreateEnvelopeBufor extends AbstractStructBase
{
    /**
     * The bufor
     * Meta informations extracted from the WSDL
     * - maxOccurs: unbounded
     * - minOccurs: 1
     * @var BuforType[]
     */
    public $bufor;
    /**
     * Constructor method for createEnvelopeBufor
     * @uses CreateEnvelopeBufor::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 CreateEnvelopeBufor
     */
    public function setBufor(array $bufor = array())
    {
        $this->bufor = $bufor;
        return $this;
    }
    /**
     * Add item to bufor value
     * @throws \InvalidArgumentException
     * @param BuforType $item
     * @return CreateEnvelopeBufor
     */
    public function addToBufor(BuforType $item)
    {
        $this->bufor[] = $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 CreateEnvelopeBufor
     */
    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__;
    }
}
