Skip to main content
Drupal API
User account menu
  • Log in

Breadcrumb

  1. Drupal Core 11.1.x

vfsStreamBlock.php

Namespace

org\bovigo\vfs

File

vendor/mikey179/vfsstream/src/main/php/org/bovigo/vfs/vfsStreamBlock.php

View source
<?php


/**
 * This file is part of vfsStream.
 *
 * For the full copyright and license information, please view the LICENSE
 * file that was distributed with this source code.
 *
 * @package  org\bovigo\vfs
 */
namespace org\bovigo\vfs;


/**
 * Block container.
 *
 * @api
 */
class vfsStreamBlock extends vfsStreamFile {
    
    /**
     * 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;
    }

}

Classes

Title Deprecated Summary
vfsStreamBlock Block container.

API Navigation

  • Drupal Core 11.1.x
  • Topics
  • Classes
  • Functions
  • Constants
  • Globals
  • Files
  • Namespaces
  • Deprecated
  • Services
RSS feed
Powered by Drupal