[ Index ]

PHP Cross Reference of Joomla 4.2.2 documentation

title

Body

[close]

/libraries/vendor/typo3/phar-stream-wrapper/src/Phar/ -> Container.php (source)

   1  <?php
   2  declare(strict_types=1);
   3  namespace TYPO3\PharStreamWrapper\Phar;
   4  
   5  /*
   6   * This file is part of the TYPO3 project.
   7   *
   8   * It is free software; you can redistribute it and/or modify it under the terms
   9   * of the MIT License (MIT). For the full copyright and license information,
  10   * please read the LICENSE file that was distributed with this source code.
  11   *
  12   * The TYPO3 project - inspiring people to share!
  13   */
  14  
  15  class Container
  16  {
  17      /**
  18       * @var Stub
  19       */
  20      private $stub;
  21  
  22      /**
  23       * @var Manifest
  24       */
  25      private $manifest;
  26  
  27      /**
  28       * @param Stub $stub
  29       * @param Manifest $manifest
  30       */
  31      public function __construct(Stub $stub, Manifest $manifest)
  32      {
  33          $this->stub = $stub;
  34          $this->manifest = $manifest;
  35      }
  36  
  37      /**
  38       * @return Stub
  39       */
  40      public function getStub(): Stub
  41      {
  42          return $this->stub;
  43      }
  44  
  45      /**
  46       * @return Manifest
  47       */
  48      public function getManifest(): Manifest
  49      {
  50          return $this->manifest;
  51      }
  52  
  53      /**
  54       * @return string
  55       */
  56      public function getAlias(): string
  57      {
  58          return $this->manifest->getAlias() ?: $this->stub->getMappedAlias();
  59      }
  60  }


Generated: Wed Sep 7 05:41:13 2022 Chilli.vc Blog - For Webmaster,Blog-Writer,System Admin and Domainer