|
@@ -0,0 +1,65 @@
|
|
|
|
|
+<?php
|
|
|
|
|
+namespace internship\bo;
|
|
|
|
|
+
|
|
|
|
|
+class Article {
|
|
|
|
|
+ private int $id;
|
|
|
|
|
+ private string $categoryName;
|
|
|
|
|
+ private string $text;
|
|
|
|
|
+ private string $title;
|
|
|
|
|
+
|
|
|
|
|
+ /**
|
|
|
|
|
+ * @return int
|
|
|
|
|
+ */
|
|
|
|
|
+ public function getId(): int {
|
|
|
|
|
+ return $this->id;
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
|
|
+ /**
|
|
|
|
|
+ * @param int $id
|
|
|
|
|
+ */
|
|
|
|
|
+ public function setId(int $id): void {
|
|
|
|
|
+ $this->id = $id;
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
|
|
+ /**
|
|
|
|
|
+ * @return string
|
|
|
|
|
+ */
|
|
|
|
|
+ public function getCategoryName(): string {
|
|
|
|
|
+ return $this->categoryName;
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
|
|
+ /**
|
|
|
|
|
+ * @param string $categoryName
|
|
|
|
|
+ */
|
|
|
|
|
+ public function setCategoryName(string $categoryName): void {
|
|
|
|
|
+ $this->categoryName = $categoryName;
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
|
|
+ /**
|
|
|
|
|
+ * @return string
|
|
|
|
|
+ */
|
|
|
|
|
+ public function getText(): string {
|
|
|
|
|
+ return $this->text;
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
|
|
+ /**
|
|
|
|
|
+ * @param string $text
|
|
|
|
|
+ */
|
|
|
|
|
+ public function setText(string $text): void {
|
|
|
|
|
+ $this->text = $text;
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
|
|
+ /**
|
|
|
|
|
+ * @return string
|
|
|
|
|
+ */
|
|
|
|
|
+ public function getTitle(): string {
|
|
|
|
|
+ return $this->title;
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
|
|
+ /**
|
|
|
|
|
+ * @param string $title
|
|
|
|
|
+ */
|
|
|
|
|
+ public function setTitle(string $title): void {
|
|
|
|
|
+ $this->title = $title;
|
|
|
|
|
+ }
|
|
|
|
|
+}
|