Exemple #1
0
 /**
  * constructor
  *
  * @param  string  $name
  * @param  int     $permissions  optional
  */
 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;
 }