Category.php 811 B

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. <?php
  2. namespace Meramo\Begriffmgt\Domain\Model;
  3. use TYPO3\CMS\Extbase\DomainObject\AbstractEntity;
  4. use TYPO3\CMS\Extbase\Persistence\ObjectStorage;
  5. class Category extends AbstractEntity
  6. {
  7. protected $uid;
  8. protected string $title = '';
  9. protected ObjectStorage $terms;
  10. public function __construct()
  11. {
  12. $this->terms = new ObjectStorage();
  13. }
  14. public function getUid(): int
  15. {
  16. return $this->uid;
  17. }
  18. public function getTitle(): string
  19. {
  20. return $this->title;
  21. }
  22. public function setTitle(string $title): void
  23. {
  24. $this->title = $title;
  25. }
  26. public function getTerms(): ObjectStorage
  27. {
  28. return $this->terms;
  29. }
  30. public function setTerms(ObjectStorage $terms): void
  31. {
  32. $this->terms = $terms;
  33. }
  34. }