‪TYPO3CMS  11.5
Addon.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 
24 class ‪Addon
25 {
29  protected ‪$identifier = '';
30 
34  protected ‪$modes = [];
35 
39  protected ‪$options = [];
40 
44  protected ‪$cssFiles = [];
45 
49  public function ‪__construct(string ‪$identifier)
50  {
51  $this->identifier = ‪$identifier;
52  }
53 
57  public function ‪getIdentifier(): string
58  {
59  return ‪$this->identifier;
60  }
61 
66  public function ‪setModes(array ‪$modes): ‪Addon
67  {
68  $this->modes = ‪$modes;
69 
70  return $this;
71  }
72 
76  public function ‪getModes(): array
77  {
78  return ‪$this->modes;
79  }
80 
85  public function ‪setOptions(array ‪$options): ‪Addon
86  {
87  $this->options = ‪$options;
88 
89  return $this;
90  }
91 
95  public function ‪getOptions(): array
96  {
97  return ‪$this->options;
98  }
99 
104  public function ‪setCssFiles(array ‪$cssFiles): ‪Addon
105  {
106  $this->cssFiles = ‪$cssFiles;
107 
108  return $this;
109  }
110 
114  public function ‪getCssFiles(): array
115  {
116  return ‪$this->cssFiles;
117  }
118 }
‪TYPO3\CMS\T3editor\Addon\$identifier
‪string $identifier
Definition: Addon.php:28
‪TYPO3\CMS\T3editor\Addon\getModes
‪array getModes()
Definition: Addon.php:72
‪TYPO3\CMS\T3editor
Definition: Addon.php:18
‪TYPO3\CMS\T3editor\Addon\$options
‪array $options
Definition: Addon.php:36
‪TYPO3\CMS\T3editor\Addon\getIdentifier
‪string getIdentifier()
Definition: Addon.php:53
‪TYPO3\CMS\T3editor\Addon\setOptions
‪self setOptions(array $options)
Definition: Addon.php:81
‪TYPO3\CMS\T3editor\Addon\setCssFiles
‪self setCssFiles(array $cssFiles)
Definition: Addon.php:100
‪TYPO3\CMS\T3editor\Addon
Definition: Addon.php:25
‪TYPO3\CMS\T3editor\Addon\__construct
‪__construct(string $identifier)
Definition: Addon.php:45
‪TYPO3\CMS\T3editor\Addon\$cssFiles
‪array $cssFiles
Definition: Addon.php:40
‪TYPO3\CMS\T3editor\Addon\$modes
‪array $modes
Definition: Addon.php:32
‪TYPO3\CMS\T3editor\Addon\getCssFiles
‪array getCssFiles()
Definition: Addon.php:110
‪TYPO3\CMS\T3editor\Addon\getOptions
‪array getOptions()
Definition: Addon.php:91
‪TYPO3\CMS\T3editor\Addon\setModes
‪self setModes(array $modes)
Definition: Addon.php:62