Article.php 788 B

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  1. <?php
  2. namespace internship;
  3. class Article {
  4. private string $categoryName;
  5. private string $text;
  6. private string $title;
  7. /**
  8. * @return string
  9. */
  10. public function getCategoryName(): string {
  11. return $this->categoryName;
  12. }
  13. /**
  14. * @param string $categoryName
  15. */
  16. public function setCategoryName(string $categoryName): void {
  17. $this->categoryName = $categoryName;
  18. }
  19. /**
  20. * @return string
  21. */
  22. public function getText(): string {
  23. return $this->text;
  24. }
  25. /**
  26. * @param string $text
  27. */
  28. public function setText(string $text): void {
  29. $this->text = $text;
  30. }
  31. /**
  32. * @return string
  33. */
  34. public function getTitle(): string {
  35. return $this->title;
  36. }
  37. /**
  38. * @param string $title
  39. */
  40. public function setTitle(string $title): void {
  41. $this->title = $title;
  42. }
  43. }