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: * @author David Grudl
17: */
18: class Rule extends Nette\Object
19: {
20: /** @var IControl */
21: public $control;
22:
23: /** @var mixed */
24: public $validator;
25:
26: /** @var mixed */
27: public $arg;
28:
29: /** @var bool */
30: public $isNegative = FALSE;
31:
32: /** @var string */
33: public $message;
34:
35: /** @var Rules for conditions */
36: public $branch;
37:
38: }
39: