@@ -18,6 +18,9 @@ |
||
18 | 18 | */ |
19 | 19 | private $construct_name; |
20 | 20 | |
21 | + /** |
|
22 | + * @param string|null $name |
|
23 | + */ |
|
21 | 24 | public function __construct($name, $construct_name) { |
22 | 25 | parent::__construct($name); |
23 | 26 | assert('is_string($construct_name)'); |
@@ -24,6 +24,9 @@ |
||
24 | 24 | */ |
25 | 25 | private $other; |
26 | 26 | |
27 | + /** |
|
28 | + * @param string $regexp |
|
29 | + */ |
|
27 | 30 | public function __construct($regexp, Variable $other) { |
28 | 31 | parent::__construct($other->name()); |
29 | 32 | if (!is_string($regexp) or @preg_match("%$regexp%", "") === false) { |