1: <?php
2:
3: /**
4: * This file is part of the Nette Framework (https://nette.org)
5: * Copyright (c) 2004 David Grudl (https://davidgrudl.com)
6: */
7:
8: namespace Nette\Forms;
9:
10: use Nette;
11:
12:
13: /**
14: * Single validation rule or condition represented as value object.
15: */
16: class Rule extends Nette\Object
17: {
18: /** @var IControl */
19: public $control;
20:
21: /** @var mixed */
22: public $validator;
23:
24: /** @var mixed */
25: public $arg;
26:
27: /** @var bool */
28: public $isNegative = FALSE;
29:
30: /** @var string */
31: public $message;
32:
33: /** @var Rules for conditions */
34: public $branch;
35:
36: }
37: