You are here

public function vfsStreamDirectory::__construct in Zircon Profile 8.0

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

constructor

Parameters

string $name:

int $permissions optional:

Throws

vfsStreamException

Overrides vfsStreamAbstractContent::__construct

File

vendor/mikey179/vfsStream/src/main/php/org/bovigo/vfs/vfsStreamDirectory.php, line 32

Class

vfsStreamDirectory
Directory container.

Namespace

org\bovigo\vfs

Code

public function __construct($name, $permissions = null) {
  if (strstr($name, '/') !== false) {
    throw new vfsStreamException('Directory name can not contain /.');
  }
  $this->type = vfsStreamContent::TYPE_DIR;
  parent::__construct($name, $permissions);
}