/** * RegexFilter constructor. * @param \RecursiveIterator $iterator * @param string $regex */ public function __construct(RecursiveIterator $iterator, $regex) { $this->iterator = $iterator; $this->regex = $this->toRegex($regex); parent::__construct($iterator, $this->regex); }
public function __construct(RecursiveIterator $it, $regex) { $this->regex = $regex; parent::__construct($it, $this->regex); }