class Container

Same name and namespace in other branches
  1. 11.x core/lib/Drupal/Core/Render/Element/Container.php \Drupal\Core\Render\Element\Container
  2. 11.x core/lib/Drupal/Core/DependencyInjection/Container.php \Drupal\Core\DependencyInjection\Container
  3. 11.x core/lib/Drupal/Component/DependencyInjection/Container.php \Drupal\Component\DependencyInjection\Container

Hierarchy

  • class \TYPO3\PharStreamWrapper\Phar\Container

Expanded class hierarchy of Container

File

misc/typo3/phar-stream-wrapper/src/Phar/Container.php, line 14

Namespace

TYPO3\PharStreamWrapper\Phar
View source
class Container {
  
  /**
   * @var Stub
   */
  private $stub;
  
  /**
   * @var Manifest
   */
  private $manifest;
  
  /**
   * @param Stub $stub
   * @param Manifest $manifest
   */
  public function __construct(Stub $stub, Manifest $manifest) {
    $this->stub = $stub;
    $this->manifest = $manifest;
  }
  
  /**
   * @return Stub
   */
  public function getStub() {
    return $this->stub;
  }
  
  /**
   * @return Manifest
   */
  public function getManifest() {
    return $this->manifest;
  }
  
  /**
   * @return string
   */
  public function getAlias() {
    return $this->manifest
      ->getAlias() ?: $this->stub
      ->getMappedAlias();
  }

}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.