<?php
use \WsdlToPhp\PackageBase\AbstractStructBase;

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