TYPO3 CMS  TYPO3_8-7
ConfigurationCategory.php
Go to the documentation of this file.
1 <?php
3 
4 /*
5  * This file is part of the TYPO3 CMS project.
6  *
7  * It is free software; you can redistribute it and/or modify it under
8  * the terms of the GNU General Public License, either version 2
9  * of the License, or any later version.
10  *
11  * For the full copyright and license information, please read the
12  * LICENSE.txt file that was distributed with this source code.
13  *
14  * The TYPO3 project - inspiring people to share!
15  */
16 
21 {
25  protected $name = '';
26 
30  protected $subcategories;
31 
35  protected $highlightText = '';
36 
40  public function __construct()
41  {
42  $this->subcategories = new \TYPO3\CMS\Extbase\Persistence\ObjectStorage();
43  }
44 
49  {
50  $this->subcategories = $subcategories;
51  }
52 
56  public function getSubcategories()
57  {
58  return $this->subcategories;
59  }
60 
66  public function addSubcategory(\TYPO3\CMS\Extensionmanager\Domain\Model\ConfigurationSubcategory $subcategory)
67  {
68  $this->subcategories->attach($subcategory);
69  }
70 
74  public function setName($name)
75  {
76  $this->name = $name;
77  }
78 
82  public function getName()
83  {
84  return $this->name;
85  }
86 
91  {
92  $this->highlightText = $highlightText;
93  }
94 
98  public function getHighlightText()
99  {
100  return $this->highlightText;
101  }
102 }
addSubcategory(\TYPO3\CMS\Extensionmanager\Domain\Model\ConfigurationSubcategory $subcategory)