Exemplo n.º 1
0
 /**
  * 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);
 }
Exemplo n.º 2
0
 public function __construct(RecursiveIterator $it, $regex)
 {
     $this->regex = $regex;
     parent::__construct($it, $this->regex);
 }