Term.php 2.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137
  1. <?php
  2. #declare(strict_types=1);
  3. namespace Meramo\Begriffmgt\Domain\Model;
  4. use TYPO3\CMS\Extbase\DomainObject\AbstractEntity;
  5. /**
  6. * This file is part of the "Chatbot Term Management" Extension for TYPO3 CMS.
  7. *
  8. * For the full copyright and license information, please read the
  9. * LICENSE.txt file that was distributed with this source code.
  10. *
  11. * (c) 2023 Meramo Developer <development@meramo.de>, Meramo Verlag GmbH
  12. */
  13. /**
  14. * Table is used to manage chatbot terms
  15. */
  16. class Term extends AbstractEntity
  17. {
  18. /**
  19. * chatbotType
  20. *
  21. * @var string
  22. */
  23. protected $type = '';
  24. /**
  25. * chatbotCategory
  26. *
  27. * @var string
  28. */
  29. protected $category = '';
  30. /**
  31. * chatbotTerms
  32. *
  33. * @var string
  34. */
  35. protected $terms = '';
  36. /**
  37. * chatbotUrl
  38. *
  39. * @var string
  40. */
  41. protected $url = '';
  42. /**
  43. * Returns the chatbotType
  44. *
  45. * @return string
  46. */
  47. public function getType()
  48. {
  49. return $this->type;
  50. }
  51. /**
  52. * Sets the chatbotType
  53. *
  54. * @param string $type
  55. * @return void
  56. */
  57. public function setType(int $type)
  58. {
  59. $this->type = $type;
  60. }
  61. /**
  62. * Returns the category
  63. *
  64. * @return string
  65. */
  66. public function getCategory()
  67. {
  68. return $this->category;
  69. }
  70. /**
  71. * Sets the category
  72. *
  73. * @param string $category
  74. * @return void
  75. */
  76. public function setCategory(int $category)
  77. {
  78. $this->category = $category;
  79. }
  80. /**
  81. * Returns Terms
  82. *
  83. * @return string
  84. */
  85. public function getTerms()
  86. {
  87. return $this->terms;
  88. }
  89. /**
  90. * Sets the chatbotTerms
  91. *
  92. * @param string $terms
  93. * @return void
  94. */
  95. public function setTerms(string $terms)
  96. {
  97. $this->terms = $terms;
  98. }
  99. /**
  100. * Returns the url
  101. *
  102. * @return string
  103. */
  104. public function getUrl()
  105. {
  106. return $this->url;
  107. }
  108. /**
  109. * Sets the chatbot_url
  110. *
  111. * @param string $Url
  112. * @return void
  113. */
  114. public function setUrl(string $url)
  115. {
  116. $this->url = $url;
  117. }
  118. }