/** * Constructs a new escaping iteratoror using the escaping method and value supplied. * * @param string $escapingMethod The escaping method to use * @param Traversable $value The iterator to escape */ public function __construct($escapingMethod, Traversable $value) { // Set the original value for __call(). Set our own iterator because passing // it to IteratorIterator will lose any other method calls. parent::__construct($escapingMethod, $value); $this->iterator = new IteratorIterator($value); }
public function __construct($escapingMethod, Traversable $value) { parent::__construct($escapingMethod, $value); $this->iterator = new IteratorIterator($value); }