function __construct($seq, $callback) { parent::__construct($seq); if (!is_callable($callback)) { throw new InvalidArgumentException(); } $this->callback = $callback; }
public function __clone() { parent::__clone(); $this->first = clone $this->first; $this->current_value = clone $this->current_value; }
function __construct($seq, $size) { parent::__construct($seq); $this->size = $size; }
function next() { $this->isCached = false; parent::next(); }