Blame view

app/Queries/Post/ForumPost.php 415 Bytes
e77200db5   nologostudio.ru   Initial commit
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
  <?php
  
  namespace FootyRoom\Queries\Post;
  
  class ForumPost extends Post
  {
      public $userId;
  
      public $username;
  
      public $userStatus;
  
      public $status;
  
      public $discussionStatus;
  
      public $categorySlug;
  
      public $lastCommentUserId;
  
      public $lastCommentUsername;
  
      public $lastCommentDate;
  
      public function isPublished(): bool
      {
          return $this->status === 'publish';
      }
  }