You are here

public function vfsStreamContainerIterator::__construct in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 vendor/mikey179/vfsStream/src/main/php/org/bovigo/vfs/vfsStreamContainerIterator.php \org\bovigo\vfs\vfsStreamContainerIterator::__construct()

constructor

Parameters

vfsStreamContent[] $children:

File

vendor/mikey179/vfsStream/src/main/php/org/bovigo/vfs/vfsStreamContainerIterator.php, line 28

Class

vfsStreamContainerIterator
Iterator for children of a directory container.

Namespace

org\bovigo\vfs

Code

public function __construct(array $children) {
  $this->children = $children;
  if (vfsStream::useDotfiles()) {
    array_unshift($this->children, new DotDirectory('.'), new DotDirectory('..'));
  }
  reset($this->children);
}