Source of file FileInfoCollection.php
Size: 1,235 Bytes - Last Modified: 2014-09-07T21:17:19+02:00
/home/theseer/storage/php/phpdox/src/shared/FileInfoCollection.php
12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273 | <?php namespace TheSeer\phpDox { /** * Class FileInfoCollection * * @package TheSeer\phpDox */ class FileInfoCollection implements \Iterator, \Countable { /** * @var FileInfo[] */ private $data; /** * @var int */ private $pos; /** * @param FileInfo $file */ public function add(FileInfo $file) { $this->data[] = $file; } /** * @return FileInfo */ public function current() { return $this->data[$this->pos]; } /** * */ public function next() { $this->pos++; } /** * @return int */ public function key() { return $this->pos; } /** * @return bool */ public function valid() { return $this->count() > $this->pos; } /** * */ public function rewind() { $this->pos = 0; } /** * @return int */ public function count() { return count($this->data); } } } |