Code Coverage
 
Lines
Functions and Methods
Classes and Traits
Total
n/a
0 / 0
n/a
0 / 0
CRAP
n/a
0 / 0
DifferentContactsConstraint
n/a
0 / 0
n/a
0 / 0
0
n/a
0 / 0
1<?php
2
3namespace Drupal\crm\Plugin\Validation\Constraint;
4
5use Symfony\Component\Validator\Constraint;
6
7/**
8 * Checks that Contact A and Contact B are different.
9 *
10 * @Constraint(
11 *   id = "DifferentContacts",
12 *   label = @Translation("Different Contacts", context = "Validation")
13 * )
14 */
15class DifferentContactsConstraint extends Constraint {
16
17  /**
18   * The message shown when the constraint is violated.
19   *
20   * @var string
21   */
22  public $message = 'Contact A and Contact B must be different.';
23
24}