[TASK] Cleanup UpgradeWizard API
[Packages/TYPO3.CMS.git] / typo3 / sysext / install / Classes / Updates / Confirmation.php
1 <?php
2 declare(strict_types = 1);
3 namespace TYPO3\CMS\Install\Updates;
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
18 class Confirmation
19 {
20 /**
21 * @var bool
22 */
23 protected $defaultValue = false;
24
25 /**
26 * @var string
27 */
28 protected $title = '';
29
30 /**
31 * @var string
32 */
33 protected $message = '';
34
35 /**
36 * @param string $title
37 * @param string $message
38 * @param bool $defaultValue
39 */
40 public function __construct(string $title, string $message, bool $defaultValue = false)
41 {
42 $this->title = $title;
43 $this->message = $message;
44 $this->defaultValue = $defaultValue;
45 }
46
47 /**
48 * @return bool
49 */
50 public function getDefaultValue(): bool
51 {
52 return $this->defaultValue;
53 }
54
55 /**
56 * @return string
57 */
58 public function getTitle(): string
59 {
60 return $this->title;
61 }
62
63 /**
64 * @return string
65 */
66 public function getMessage(): string
67 {
68 return $this->message;
69 }
70 }