<?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  2018 Lifestyle Webconsulting GmbH
 * @link       http://www.life-style.de
 */

namespace Sso\RestBundle\ModelXml\Response\UserWs\Version2\User\Show\Error;

use JMS\Serializer\Annotation as Serializer;


/**
 *
 * @Serializer\XmlRoot("Errors")
 *
 * Class Errors
 * @package Sso\RestBundle\ModelXml\Response\UserWs\Version2\User\Show\Error
 */
class Errors
{

    /**
     * @Serializer\SerializedName("Errors")
     * @Serializer\Type("ArrayCollection<Sso\RestBundle\ModelXml\Response\UserWs\Version2\User\Show\Error\Error>")
     * @Serializer\XmlList(entry="Error")
     * @var Error
     */
    private $error;

    /**
     * @param $error
     */
    public function addError($error)
    {
        $this->error[] = $error;
    }

    /**
     * @return Error
     */
    public function getError()
    {
        return $this->error;
    }

}