first commit
This commit is contained in:
commit
1218dd1517
12716 files changed
+989233
No files matched your search
@@ -0,0 +1,82 @@
|
||||
<?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;
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user