32 $this->withTag = $with_tag;
33 $this->withoutTag = $without_tag;
42 public function validate($string, $config, $context)
44 $token = $context->get(
'CurrentToken',
true);
45 if (!$token || $token->name !== $this->tag) {
46 return $this->withoutTag->validate($string, $config, $context);
48 return $this->withTag->validate($string, $config, $context);