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