You are here

public function vfsStreamBlock::__construct in Zircon Profile 8

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

constructor

Parameters

string $name:

int $permissions optional:

Overrides vfsStreamFile::__construct

File

vendor/mikey179/vfsStream/src/main/php/org/bovigo/vfs/vfsStreamBlock.php, line 25

Class

vfsStreamBlock
Block container.

Namespace

org\bovigo\vfs

Code

public function __construct($name, $permissions = null) {
  if (empty($name)) {
    throw new vfsStreamException('Name of Block device was empty');
  }
  parent::__construct($name, $permissions);
  $this->type = vfsStreamContent::TYPE_BLOCK;
}