Skip to content

Commit 013b3f2

Browse files
author
Nico Oelgart
authored
Update Rule.php
1 parent 45ab3b8 commit 013b3f2

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/nicoSWD/Rules/Rule.php

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -86,6 +86,11 @@ public function registerOperator(string $operator, BaseExpression $token)
8686
{
8787
$this->parser->registerToken($operator, $token);
8888
}
89+
90+
public function registerToken(string $class, string $regex, int $priority = null)
91+
{
92+
$this->parser->registerToken($class, $regex, $priority);
93+
}
8994

9095
public function getError() : string
9196
{

0 commit comments

Comments
 (0)