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

Breadcrumb

  1. Drupal Core 11.1.x
  2. vfsStreamContainer.php

interface vfsStreamContainer

Interface for stream contents that are able to store other stream contents.

Hierarchy

  • interface \org\bovigo\vfs\vfsStreamContainer extends \org\bovigo\vfs\IteratorAggregate

Expanded class hierarchy of vfsStreamContainer

All classes that implement vfsStreamContainer

File

vendor/mikey179/vfsstream/src/main/php/org/bovigo/vfs/vfsStreamContainer.php, line 14

Namespace

org\bovigo\vfs
View source
interface vfsStreamContainer extends \IteratorAggregate {
    
    /**
     * adds child to the directory
     *
     * @param  vfsStreamContent  $child
     */
    public function addChild(vfsStreamContent $child);
    
    /**
     * removes child from the directory
     *
     * @param   string  $name
     * @return  bool
     */
    public function removeChild($name);
    
    /**
     * checks whether the container contains a child with the given name
     *
     * @param   string  $name
     * @return  bool
     */
    public function hasChild($name);
    
    /**
     * returns the child with the given name
     *
     * @param   string  $name
     * @return  vfsStreamContent
     */
    public function getChild($name);
    
    /**
     * checks whether directory contains any children
     *
     * @return  bool
     * @since   0.10.0
     */
    public function hasChildren();
    
    /**
     * returns a list of children for this directory
     *
     * @return  vfsStreamContent[]
     */
    public function getChildren();

}

Members

Title Sort descending Modifiers Object type Summary Overrides
vfsStreamContainer::addChild public function adds child to the directory 1
vfsStreamContainer::getChild public function returns the child with the given name 1
vfsStreamContainer::getChildren public function returns a list of children for this directory 1
vfsStreamContainer::hasChild public function checks whether the container contains a child with the given name 1
vfsStreamContainer::hasChildren public function checks whether directory contains any children 1
vfsStreamContainer::removeChild public function removes child from the directory 1

API Navigation

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