| 12345678910111213141516171819202122232425262728293031323334353637383940414243 |
- <?php
- namespace Meramo\Begriffmgt\Domain\Model;
- use TYPO3\CMS\Extbase\DomainObject\AbstractEntity;
- use TYPO3\CMS\Extbase\Persistence\ObjectStorage;
- class Category extends AbstractEntity
- {
- protected $uid;
- protected string $title = '';
- protected ObjectStorage $terms;
- public function __construct()
- {
- $this->terms = new ObjectStorage();
- }
- public function getUid(): int
- {
- return $this->uid;
- }
- public function getTitle(): string
- {
- return $this->title;
- }
- public function setTitle(string $title): void
- {
- $this->title = $title;
- }
- public function getTerms(): ObjectStorage
- {
- return $this->terms;
- }
- public function setTerms(ObjectStorage $terms): void
- {
- $this->terms = $terms;
- }
- }
|