You are here

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

returns the name of the current child

Return value

string

File

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

Class

vfsStreamContainerIterator
Iterator for children of a directory container.

Namespace

org\bovigo\vfs

Code

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