Term.php 970 B

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. <?php
  2. declare(strict_types=1);
  3. namespace Meramo\Begriffmgt\Domain\Model;
  4. use TYPO3\CMS\Extbase\DomainObject\AbstractEntity;
  5. class Term extends AbstractEntity
  6. {
  7. protected string $term = '';
  8. protected ?Category $category = null;
  9. protected ?Type $type = null;
  10. protected ?Url $url = null;
  11. public function getTerm(): string {
  12. return $this->term;
  13. }
  14. public function setTerm(string $term): void {
  15. $this->term = $term;
  16. }
  17. public function getCategory(): ?Category {
  18. return $this->category;
  19. }
  20. public function setCategory(?Category $category): void {
  21. $this->category = $category;
  22. }
  23. public function getType(): ?Type {
  24. return $this->type;
  25. }
  26. public function setType(?Type $type): void {
  27. $this->type = $type;
  28. }
  29. public function getUrl(): ?Url {
  30. return $this->url;
  31. }
  32. public function setUrl(?Url $url): void {
  33. $this->url = $url;
  34. }
  35. }