annotate vendor/typo3/phar-stream-wrapper/src/Phar/Container.php @ 19:fa3358dc1485 tip

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