<?php
use \WsdlToPhp\PackageBase\AbstractStructBase;

/**
 * This class stands for getEnvelopeListResponse StructType
 * @subpackage Structs
 */
class GetEnvelopeListResponse extends AbstractStructBase
{
    /**
     * The envelopes
     * Meta information extracted from the WSDL
     * - maxOccurs: unbounded
     * - minOccurs: 0
     * @var EnvelopeInfoType[]
     */
    public $envelopes;
    /**
     * Constructor method for getEnvelopeListResponse
     * @uses GetEnvelopeListResponse::setEnvelopes()
     * @param EnvelopeInfoType[] $envelopes
     */
    public function __construct(array $envelopes = array())
    {
        $this
            ->setEnvelopes($envelopes);
    }
    /**
     * Get envelopes value
     * @return EnvelopeInfoType[]|null
     */
    public function getEnvelopes()
    {
        return $this->envelopes;
    }
    /**
     * Set envelopes value
     * @param EnvelopeInfoType[] $envelopes
     * @return GetEnvelopeListResponse
     */
    public function setEnvelopes(array $envelopes = array())
    {
        $this->envelopes = $envelopes;
        return $this;
    }
    /**
     * Add item to envelopes value
     * @throws \InvalidArgumentException
     * @param EnvelopeInfoType $item
     * @return GetEnvelopeListResponse
     */
    public function addToEnvelopes(EnvelopeInfoType $item)
    {
        $this->envelopes[] = $item;
        return $this;
    }
}
