You are here

public function vfsStreamContainerIterator::current 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::current()

returns the current child

Return value

vfsStreamContent

File

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

Class

vfsStreamContainerIterator
Iterator for children of a directory container.

Namespace

org\bovigo\vfs

Code

public function current() {
  $child = current($this->children);
  if (false === $child) {
    return null;
  }
  return $child;
}