summaryrefslogtreecommitdiff
path: root/model/Tag.php
diff options
context:
space:
mode:
Diffstat (limited to 'model/Tag.php')
-rw-r--r--model/Tag.php24
1 files changed, 0 insertions, 24 deletions
diff --git a/model/Tag.php b/model/Tag.php
deleted file mode 100644
index a8324f7..0000000
--- a/model/Tag.php
+++ /dev/null
@@ -1,24 +0,0 @@
-<?php
-
-class Tag extends Model implements Stringable {
-
- const DB_TABLE = 'tags';
-
- public int $id;
- public string $tag;
- public int $postsCount;
- public int $visiblePostsCount;
-
- public function getUrl(): string {
- return '/'.$this->tag.'/';
- }
-
- public function getPostsCount(bool $is_admin): int {
- return $is_admin ? $this->postsCount : $this->visiblePostsCount;
- }
-
- public function __toString(): string {
- return $this->tag;
- }
-
-}