<?php

/**
 * Lifestyle Webconsulting GmbH
 *
 * LICENSE: This Software is the property of Lifestyle Webconsulting GmbH (Aschaffenburg, Germany)
 * and is private by copyright law - it is NOT Freeware.
 *
 * Any unauthorized use of this software without a valid license
 * is a violation of the license agreement and will be prosecuted by
 * civil and criminal law.
 *
 * @copyright  2019 Lifestyle Webconsulting GmbH
 * @link       https://www.life-style.de
 */

namespace Sso\WebserviceBundle\Services\UserGroup\Update\Response\Version2;

use JMS\Serializer\Annotation as Serializer;

/**
 * Class UserGroup
 * @package Sso\WebserviceBundle\Services\UserGroup\Update\Response\Version2
 */
final class UserGroup
{
    /**
     * @Serializer\SerializedName("Update")
     * @Serializer\Type("array<Sso\WebserviceBundle\Services\UserGroup\Update\Response\Version2\Update>")
     * @Serializer\XmlList(inline=true, entry="Update")
     * @var Update[]
     */
    private $update = array();

    /**
     * @param Update $update
     */
    public function addUpdate(Update $update)
    {
        $this->update[] = $update;
    }
}
