open-orchestra/open-orchestra-model-bundle

View on GitHub
ModelBundle/Validator/Constraints/UniqueFieldIdContentType.php

Summary

Maintainability
A
0 mins
Test Coverage
<?php

namespace OpenOrchestra\ModelBundle\Validator\Constraints;

use Symfony\Component\Validator\Constraint;

/**
 * Class UniqueFieldIdContentType
 */
class UniqueFieldIdContentType extends Constraint
{
    public $message = 'open_orchestra_model_validators.document.content_type.unique_field_id';

    /**
     * @return array|string
     */
    public function getTargets()
    {
        return self::CLASS_CONSTRAINT;
    }
}