We need to instantiate it with a different from and to state since either
one of those states can be the regex states. All other fields need to be
copied.
Override this method in a subclass to add other fields. By using 'new
static' we are already instantiating a possible subclass.
public getCopy ( |
||
$from | ||
$to | ||
return |