public function __construct(RuleInterface $subRule, $regex) { $this->subRule = $subRule; $this->regex = $regex; }