1: <?php
2: namespace Azalea\Selenium\Toolkit\Validation;
3:
4: abstract class ValidationRule
5: {
6: protected $dom = null;
7:
8: public function __construct($dom)
9: {
10: if (!$dom) {
11: throw new \InvalidArgumentException("Dom object is required.");
12: }
13: $this->dom = $dom;
14: }
15:
16: abstract public function test($params);
17: }
18:
19: ?>