‪TYPO3CMS  ‪main
FrontendUserGroup.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 
22 
27 {
28  protected string ‪$title = '';
29 
30  protected string ‪$description = '';
31 
36 
37  public function ‪__construct(string ‪$title = '')
38  {
39  $this->‪setTitle($title);
40  $this->subgroup = new ‪ObjectStorage();
41  }
42 
43  public function ‪setTitle(string ‪$title): void
44  {
45  $this->title = ‪$title;
46  }
47 
48  public function ‪getTitle(): string
49  {
50  return ‪$this->title;
51  }
52 
53  public function ‪setDescription(string ‪$description): void
54  {
56  }
57 
58  public function ‪getDescription(): string
59  {
60  return ‪$this->description;
61  }
62 
70  {
71  $this->subgroup = ‪$subgroup;
72  }
73 
75  {
76  $this->subgroup->attach(‪$subgroup);
77  }
78 
80  {
81  $this->subgroup->detach(‪$subgroup);
82  }
83 
90  public function ‪getSubgroup(): ‪ObjectStorage
91  {
92  return ‪$this->subgroup;
93  }
94 }
‪TYPO3Tests\BlogExample\Domain\Model\FrontendUserGroup\__construct
‪__construct(string $title='')
Definition: FrontendUserGroup.php:37
‪TYPO3Tests\BlogExample\Domain\Model\FrontendUserGroup\$subgroup
‪ObjectStorage $subgroup
Definition: FrontendUserGroup.php:35
‪TYPO3Tests\BlogExample\Domain\Model\FrontendUserGroup\getSubgroup
‪ObjectStorage< FrontendUserGroup > getSubgroup()
Definition: FrontendUserGroup.php:90
‪TYPO3\CMS\Extbase\DomainObject\AbstractEntity
Definition: AbstractEntity.php:22
‪TYPO3\CMS\Extbase\Persistence\ObjectStorage
Definition: ObjectStorage.php:34
‪TYPO3Tests\BlogExample\Domain\Model
Definition: Administrator.php:18
‪TYPO3Tests\BlogExample\Domain\Model\FrontendUserGroup\setSubgroup
‪setSubgroup(ObjectStorage $subgroup)
Definition: FrontendUserGroup.php:69
‪TYPO3Tests\BlogExample\Domain\Model\FrontendUserGroup\removeSubgroup
‪removeSubgroup(FrontendUserGroup $subgroup)
Definition: FrontendUserGroup.php:79
‪TYPO3Tests\BlogExample\Domain\Model\FrontendUserGroup\getTitle
‪getTitle()
Definition: FrontendUserGroup.php:48
‪TYPO3Tests\BlogExample\Domain\Model\FrontendUserGroup\$description
‪string $description
Definition: FrontendUserGroup.php:30
‪TYPO3Tests\BlogExample\Domain\Model\FrontendUserGroup\setDescription
‪setDescription(string $description)
Definition: FrontendUserGroup.php:53
‪TYPO3Tests\BlogExample\Domain\Model\FrontendUserGroup\$title
‪string $title
Definition: FrontendUserGroup.php:28
‪TYPO3\CMS\Redirects\Message\description
‪identifier description
Definition: RedirectWasHitMessage.php:32
‪TYPO3Tests\BlogExample\Domain\Model\FrontendUserGroup\setTitle
‪setTitle(string $title)
Definition: FrontendUserGroup.php:43
‪TYPO3Tests\BlogExample\Domain\Model\FrontendUserGroup\getDescription
‪getDescription()
Definition: FrontendUserGroup.php:58
‪TYPO3Tests\BlogExample\Domain\Model\FrontendUserGroup
Definition: FrontendUserGroup.php:27
‪TYPO3Tests\BlogExample\Domain\Model\FrontendUserGroup\addSubgroup
‪addSubgroup(FrontendUserGroup $subgroup)
Definition: FrontendUserGroup.php:74