83 lines
1.7 KiB
PHP
83 lines
1.7 KiB
PHP
<?php
|
|
declare(strict_types = 1);
|
|
|
|
namespace TYPO3\CMS\Install\Updates;
|
|
|
|
/*
|
|
* This file is part of the TYPO3 CMS project.
|
|
*
|
|
* It is free software; you can redistribute it and/or modify it under
|
|
* the terms of the GNU General Public License, either version 2
|
|
* of the License, or any later version.
|
|
*
|
|
* For the full copyright and license information, please read the
|
|
* LICENSE.txt file that was distributed with this source code.
|
|
*
|
|
* The TYPO3 project - inspiring people to share!
|
|
*/
|
|
|
|
/**
|
|
* Model for extensions installed by upgrade wizards
|
|
*
|
|
* @internal
|
|
*/
|
|
class ExtensionModel
|
|
{
|
|
protected $key = '';
|
|
protected $title = '';
|
|
protected $versionString = '';
|
|
protected $composerName = '';
|
|
protected $description = '';
|
|
|
|
public function __construct(
|
|
string $key,
|
|
string $title,
|
|
string $versionString,
|
|
string $composerName,
|
|
string $description
|
|
) {
|
|
$this->key = $key;
|
|
$this->title = $title;
|
|
$this->versionString = $versionString;
|
|
$this->composerName = $composerName;
|
|
$this->description = $description;
|
|
}
|
|
|
|
public function getDescription(): string
|
|
{
|
|
return $this->description;
|
|
}
|
|
|
|
/**
|
|
* @return string
|
|
*/
|
|
public function getKey(): string
|
|
{
|
|
return $this->key;
|
|
}
|
|
|
|
/**
|
|
* @return string
|
|
*/
|
|
public function getTitle(): string
|
|
{
|
|
return $this->title;
|
|
}
|
|
|
|
/**
|
|
* @return string
|
|
*/
|
|
public function getVersionString(): string
|
|
{
|
|
return $this->versionString;
|
|
}
|
|
|
|
/**
|
|
* @return string
|
|
*/
|
|
public function getComposerName(): string
|
|
{
|
|
return $this->composerName;
|
|
}
|
|
}
|