‪TYPO3CMS  ‪main
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 {
32  protected string ‪$title = '';
33 
34  protected string ‪$description = '';
35 
40 
41  public function ‪getTitle(): string
42  {
43  return ‪$this->title;
44  }
45 
46  public function ‪setTitle(string ‪$title): void
47  {
48  $this->title = ‪$title;
49  }
50 
51  public function ‪getDescription(): string
52  {
53  return ‪$this->description;
54  }
55 
56  public function ‪setDescription(string ‪$description): void
57  {
59  }
60 
61  public function ‪getParent(): ?‪Category
62  {
63  if ($this->parent instanceof ‪LazyLoadingProxy) {
64  $this->parent->_loadRealInstance();
65  }
66  return ‪$this->parent;
67  }
68 
69  public function ‪setParent(‪Category ‪$parent): void
70  {
71  $this->parent = ‪$parent;
72  }
73 }
‪TYPO3Tests\BlogExample\Domain\Model\Category
Definition: Category.php:28
‪TYPO3\CMS\Extbase\Annotation
Definition: IgnoreValidation.php:18
‪TYPO3Tests\BlogExample\Domain\Model\Category\setTitle
‪setTitle(string $title)
Definition: Category.php:46
‪TYPO3Tests\BlogExample\Domain\Model\Category\$description
‪string $description
Definition: Category.php:34
‪TYPO3\CMS\Extbase\DomainObject\AbstractEntity
Definition: AbstractEntity.php:22
‪TYPO3Tests\BlogExample\Domain\Model\Category\$title
‪string $title
Definition: Category.php:32
‪TYPO3Tests\BlogExample\Domain\Model\Category\setDescription
‪setDescription(string $description)
Definition: Category.php:56
‪TYPO3Tests\BlogExample\Domain\Model\Category\getDescription
‪getDescription()
Definition: Category.php:51
‪TYPO3Tests\BlogExample\Domain\Model
Definition: Administrator.php:18
‪TYPO3Tests\BlogExample\Domain\Model\Category\getParent
‪getParent()
Definition: Category.php:61
‪TYPO3\CMS\Extbase\Persistence\Generic\LazyLoadingProxy
Definition: LazyLoadingProxy.php:30
‪TYPO3\CMS\Redirects\Message\description
‪identifier description
Definition: RedirectWasHitMessage.php:32
‪TYPO3Tests\BlogExample\Domain\Model\Category\getTitle
‪getTitle()
Definition: Category.php:41
‪TYPO3Tests\BlogExample\Domain\Model\Category\$parent
‪Category LazyLoadingProxy null $parent
Definition: Category.php:39
‪TYPO3Tests\BlogExample\Domain\Model\Category\setParent
‪setParent(Category $parent)
Definition: Category.php:69