%PDF- %PDF-
Mini Shell

Mini Shell

Direktori : /www/varak.net/wiki.varak.net/extensions/CirrusSearch/includes/iterator/
Upload File :
Create Path :
Current File : /www/varak.net/wiki.varak.net/extensions/CirrusSearch/includes/iterator/IteratorDecorator.php

<?php

namespace CirrusSearch\Iterator;

use Iterator;

/**
 * Allows extending classes to decorate an Iterator with
 * reduced boilerplate.
 */
abstract class IteratorDecorator implements Iterator {
	protected $iterator;

	public function __construct( Iterator $iterator ) {
		$this->iterator = $iterator;
	}

	public function current() {
		return $this->iterator->current();
	}

	public function key() {
		return $this->iterator->key();
	}

	public function next() {
		return $this->iterator->next();
	}

	public function rewind() {
		return $this->iterator->rewind();
	}

	public function valid() {
		return $this->iterator->valid();
	}
}

Zerion Mini Shell 1.0