Total Complexity | 3 |
Total Lines | 22 |
Duplicated Lines | 0 % |
Changes | 0 |
1 | <?php |
||
31 | class Text extends Node |
||
32 | { |
||
33 | use TypeTrait; |
||
34 | |||
35 | /** |
||
36 | * @var string |
||
37 | */ |
||
38 | private $validationRegexp; |
||
39 | |||
40 | public function __construct(int $lineNr = 0, string $value = '', string $name = '', string $validationRegexp = '') |
||
41 | { |
||
42 | parent::__construct($lineNr, $value); |
||
43 | $this->validationRegexp = $validationRegexp; |
||
44 | |||
45 | if ($name) { |
||
46 | $this->setName($name); |
||
47 | } |
||
48 | } |
||
49 | |||
50 | public function getValidationRegexp(): string |
||
53 | } |
||
54 | } |
||
55 |