<?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\WebserviceBundle\Validator\Constraints;

use Symfony\Component\Validator\Constraint;

/**
 * Class UserTypeIdentifier
 *
 * @Annotation
 *
 * @copyright  2018 Lifestyle Webconsulting GmbH
 * @link       http://www.life-style.de
 * @package Sso\WebserviceBundle\Validator\Constraints
 */
class UserTypeIdentifier extends Constraint
{
    public $message = 'User-identifier not unique: "{{ properties }}"! You may specify ONLY one of Guid, Username, Email or Identifier. If you don\'t know, if it is a guid, username or email, use identifier.';
    public $notBlankMessage = 'The {{ property }} should not be blank.';

    public function getTargets()
    {
        return self::CLASS_CONSTRAINT;
    }
}