public function __construct(Iterator $iterator, $predicate) { parent::__construct($iterator); $this->predicate = $predicate; }