‪TYPO3CMS  11.5
Category.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 
23 
28 {
33  protected ‪$title = '';
34 
38  protected ‪$description = '';
39 
44  protected ‪$parent;
45 
51  public function ‪getTitle(): string
52  {
53  return ‪$this->title;
54  }
55 
61  public function ‪setTitle(‪$title): void
62  {
63  $this->title = ‪$title;
64  }
65 
71  public function ‪getDescription(): string
72  {
73  return ‪$this->description;
74  }
75 
81  public function ‪setDescription(‪$description): void
82  {
83  $this->description = ‪$description;
84  }
85 
91  public function ‪getParent()
92  {
93  if ($this->parent instanceof ‪LazyLoadingProxy) {
94  $this->parent->_loadRealInstance();
95  }
96  return ‪$this->parent;
97  }
98 
104  public function ‪setParent(‪Category ‪$parent): void
105  {
106  $this->parent = ‪$parent;
107  }
108 }
‪ExtbaseTeam\BlogExample\Domain\Model\Category\setTitle
‪setTitle($title)
Definition: Category.php:58
‪ExtbaseTeam\BlogExample\Domain\Model\Category
Definition: Category.php:28
‪TYPO3\CMS\Extbase\Annotation
Definition: IgnoreValidation.php:18
‪ExtbaseTeam\BlogExample\Domain\Model\Category\setDescription
‪setDescription($description)
Definition: Category.php:78
‪ExtbaseTeam\BlogExample\Domain\Model\Category\getParent
‪Category null getParent()
Definition: Category.php:88
‪ExtbaseTeam\BlogExample\Domain\Model\Category\$description
‪string $description
Definition: Category.php:36
‪TYPO3\CMS\Extbase\DomainObject\AbstractEntity
Definition: AbstractEntity.php:22
‪ExtbaseTeam\BlogExample\Domain\Model\Category\$title
‪string $title
Definition: Category.php:32
‪ExtbaseTeam\BlogExample\Domain\Model\Category\$parent
‪Category null $parent
Definition: Category.php:41
‪ExtbaseTeam\BlogExample\Domain\Model\Category\getDescription
‪string getDescription()
Definition: Category.php:68
‪ExtbaseTeam\BlogExample\Domain\Model\Category\getTitle
‪string getTitle()
Definition: Category.php:48
‪TYPO3\CMS\Extbase\Persistence\Generic\LazyLoadingProxy
Definition: LazyLoadingProxy.php:29
‪ExtbaseTeam\BlogExample\Domain\Model\Category\setParent
‪setParent(Category $parent)
Definition: Category.php:101
‪ExtbaseTeam\BlogExample\Domain\Model
Definition: Administrator.php:18