1<?php 2 3declare(strict_types=1); 4 5/* 6 * This file is part of the TYPO3 CMS project. 7 * 8 * It is free software; you can redistribute it and/or modify it under 9 * the terms of the GNU General Public License, either version 2 10 * of the License, or any later version. 11 * 12 * For the full copyright and license information, please read the 13 * LICENSE.txt file that was distributed with this source code. 14 * 15 * The TYPO3 project - inspiring people to share! 16 */ 17 18namespace TYPO3\CMS\Install\Updates; 19 20/** 21 * Model for extensions installed by upgrade wizards 22 * 23 * @internal 24 */ 25class ExtensionModel 26{ 27 /** 28 * @var string 29 */ 30 protected $key = ''; 31 32 /** 33 * @var string 34 */ 35 protected $title = ''; 36 37 /** 38 * @var string 39 */ 40 protected $versionString = ''; 41 42 /** 43 * @var string 44 */ 45 protected $composerName = ''; 46 47 /** 48 * @var string 49 */ 50 protected $description = ''; 51 52 public function __construct( 53 string $key, 54 string $title, 55 string $versionString, 56 string $composerName, 57 string $description 58 ) { 59 $this->key = $key; 60 $this->title = $title; 61 $this->versionString = $versionString; 62 $this->composerName = $composerName; 63 $this->description = $description; 64 } 65 66 public function getDescription(): string 67 { 68 return $this->description; 69 } 70 71 /** 72 * @return string 73 */ 74 public function getKey(): string 75 { 76 return $this->key; 77 } 78 79 /** 80 * @return string 81 */ 82 public function getTitle(): string 83 { 84 return $this->title; 85 } 86 87 /** 88 * @return string 89 */ 90 public function getVersionString(): string 91 { 92 return $this->versionString; 93 } 94 95 /** 96 * @return string 97 */ 98 public function getComposerName(): string 99 { 100 return $this->composerName; 101 } 102} 103