You are here

public function vfsStreamFile::read in Zircon Profile 8

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

reads the given amount of bytes from content

Using this method changes the time when the file was last accessed.

Parameters

int $count:

Return value

string

File

vendor/mikey179/vfsStream/src/main/php/org/bovigo/vfs/vfsStreamFile.php, line 166

Class

vfsStreamFile
File container.

Namespace

org\bovigo\vfs

Code

public function read($count) {
  $this->lastAccessed = time();
  return $this->content
    ->read($count);
}