‪TYPO3CMS  ‪main
Confirmation.php
Go to the documentation of this file.
1 <?php
2 
3 declare(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 
19 
21 {
22  public function ‪__construct(
23  protected readonly string $title,
24  protected readonly string $message,
25  protected readonly bool $defaultValue = false,
26  protected readonly string $confirm = 'Yes, execute',
27  protected readonly string $deny = 'No, do not execute',
28  protected readonly bool $required = false
29  ) {}
30 
31  public function ‪getConfirm(): string
32  {
33  return $this->confirm;
34  }
35 
36  public function ‪getDeny(): string
37  {
38  return $this->deny;
39  }
40 
41  public function ‪isRequired(): bool
42  {
43  return $this->required;
44  }
45 
46  public function ‪getDefaultValue(): bool
47  {
48  return $this->defaultValue;
49  }
50 
51  public function ‪getTitle(): string
52  {
53  return $this->title;
54  }
55 
56  public function ‪getMessage(): string
57  {
58  return $this->message;
59  }
60 }
‪TYPO3\CMS\Install\Updates\Confirmation\getMessage
‪getMessage()
Definition: Confirmation.php:56
‪TYPO3\CMS\Install\Updates\Confirmation\getTitle
‪getTitle()
Definition: Confirmation.php:51
‪TYPO3\CMS\Install\Updates\Confirmation\getDefaultValue
‪getDefaultValue()
Definition: Confirmation.php:46
‪TYPO3\CMS\Install\Updates
Definition: LegacyClassesForIde.php:22
‪TYPO3\CMS\Install\Updates\Confirmation\isRequired
‪isRequired()
Definition: Confirmation.php:41
‪TYPO3\CMS\Install\Updates\Confirmation
Definition: Confirmation.php:21
‪TYPO3\CMS\Install\Updates\Confirmation\__construct
‪__construct(protected readonly string $title, protected readonly string $message, protected readonly bool $defaultValue=false, protected readonly string $confirm='Yes, execute', protected readonly string $deny='No, do not execute', protected readonly bool $required=false)
Definition: Confirmation.php:22
‪TYPO3\CMS\Install\Updates\Confirmation\getDeny
‪getDeny()
Definition: Confirmation.php:36
‪TYPO3\CMS\Install\Updates\Confirmation\getConfirm
‪getConfirm()
Definition: Confirmation.php:31