It seems like the GitHub access token used for retrieving details about this repository from
GitHub became invalid. This might prevent certain types of inspections from being run (in
particular,
everything related to pull requests).
Please ask an admin of your repository to re-new the access token on this website.
use Symfony\Component\Validator\Exception\InvalidArgumentException;
16
use Symfony\Component\Validator\Exception\MissingOptionsException;
17
18
final class BatchTimeAfter extends Constraint
19
{
20
/**
21
* @var string
22
*/
23
public $firstField;
24
25
/**
26
* @var string
27
*/
28
public $secondField;
29
30
/**
31
* @var string
32
*/
33
public $message = 'error.second_batch_time_before_first';
34
35
/**
36
* @var string
37
*/
38
public $emptyMessage = 'error.batch_time_part_empty';
39
40
/**
41
* @var bool
42
*/
43
public $required = true;
44
45
/**
46
* @param array $options
47
*/
48
public function __construct($options = null)
49
{
50
parent::__construct($options);
51
52
if (null === $this->firstField || null === $this->secondField) {
53
throw new MissingOptionsException('The options "firstField" and "secondField" must be given for constraint '.__CLASS__, ['firstField', 'secondField']);