<?php

namespace \Losc\CucmBundle\Model\Webservice\StructType;

use \WsdlToPhp\PackageBase\AbstractStructBase;

/**
 * This class stands for certificates StructType
 * @subpackage Structs
 */
class Certificates extends AbstractStructBase
{
    /**
     * The certificate
     * Meta information extracted from the WSDL
     * - maxOccurs: 10
     * - minOccurs: 0
     * @var \\Losc\CucmBundle\Model\Webservice\StructType\XVpnGatewayMember[]
     */
    public $certificate;
    /**
     * Constructor method for certificates
     * @uses Certificates::setCertificate()
     * @param \\Losc\CucmBundle\Model\Webservice\StructType\XVpnGatewayMember[] $certificate
     */
    public function __construct(array $certificate = array())
    {
        $this
            ->setCertificate($certificate);
    }
    /**
     * Get certificate value
     * @return \\Losc\CucmBundle\Model\Webservice\StructType\XVpnGatewayMember[]|null
     */
    public function getCertificate()
    {
        return $this->certificate;
    }
    /**
     * Set certificate value
     * @param \\Losc\CucmBundle\Model\Webservice\StructType\XVpnGatewayMember[] $certificate
     * @return \\Losc\CucmBundle\Model\Webservice\StructType\Certificates
     */
    public function setCertificate(array $certificate = array())
    {
        $this->certificate = $certificate;
        return $this;
    }
    /**
     * Add item to certificate value
     * @throws \InvalidArgumentException
     * @param \\Losc\CucmBundle\Model\Webservice\StructType\XVpnGatewayMember $item
     * @return \\Losc\CucmBundle\Model\Webservice\StructType\Certificates
     */
    public function addToCertificate(\\Losc\CucmBundle\Model\Webservice\StructType\XVpnGatewayMember $item)
    {
        $this->certificate[] = $item;
        return $this;
    }
}
