annotate vendor/typo3/phar-stream-wrapper/src/Phar/Container.php @ 5:12f9dff5fda9 tip

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