‪TYPO3CMS  9.5
Addon.php
Go to the documentation of this file.
1 <?php
2 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 
22 class ‪Addon
23 {
27  protected ‪$identifier = '';
28 
32  protected ‪$modes = [];
33 
37  protected ‪$options = [];
38 
42  protected ‪$cssFiles = [];
43 
47  public function ‪__construct(string ‪$identifier)
48  {
49  $this->identifier = ‪$identifier;
50  }
51 
55  public function ‪getIdentifier(): string
56  {
57  return ‪$this->identifier;
58  }
59 
64  public function ‪setModes(array ‪$modes): ‪Addon
65  {
66  $this->modes = ‪$modes;
67 
68  return $this;
69  }
70 
74  public function ‪getModes(): array
75  {
76  return ‪$this->modes;
77  }
78 
83  public function ‪setOptions(array ‪$options): ‪Addon
84  {
85  $this->options = ‪$options;
86 
87  return $this;
88  }
89 
93  public function ‪getOptions(): array
94  {
95  return ‪$this->options;
96  }
97 
102  public function ‪setCssFiles(array ‪$cssFiles): ‪Addon
103  {
104  $this->cssFiles = ‪$cssFiles;
105 
106  return $this;
107  }
108 
112  public function ‪getCssFiles(): array
113  {
114  return ‪$this->cssFiles;
115  }
116 }
‪TYPO3\CMS\T3editor\Addon\$identifier
‪string $identifier
Definition: Addon.php:26
‪TYPO3\CMS\T3editor\Addon\getModes
‪array getModes()
Definition: Addon.php:70
‪TYPO3\CMS\T3editor
Definition: Addon.php:3
‪TYPO3\CMS\T3editor\Addon\$options
‪array $options
Definition: Addon.php:34
‪TYPO3\CMS\T3editor\Addon\getIdentifier
‪string getIdentifier()
Definition: Addon.php:51
‪TYPO3\CMS\T3editor\Addon\setOptions
‪self setOptions(array $options)
Definition: Addon.php:79
‪TYPO3\CMS\T3editor\Addon\setCssFiles
‪self setCssFiles(array $cssFiles)
Definition: Addon.php:98
‪TYPO3\CMS\T3editor\Addon
Definition: Addon.php:23
‪TYPO3\CMS\T3editor\Addon\__construct
‪__construct(string $identifier)
Definition: Addon.php:43
‪TYPO3\CMS\T3editor\Addon\$cssFiles
‪array $cssFiles
Definition: Addon.php:38
‪TYPO3\CMS\T3editor\Addon\$modes
‪array $modes
Definition: Addon.php:30
‪TYPO3\CMS\T3editor\Addon\getCssFiles
‪array getCssFiles()
Definition: Addon.php:108
‪TYPO3\CMS\T3editor\Addon\getOptions
‪array getOptions()
Definition: Addon.php:89
‪TYPO3\CMS\T3editor\Addon\setModes
‪self setModes(array $modes)
Definition: Addon.php:60