Total Complexity | 8 |
Total Lines | 32 |
Duplicated Lines | 0 % |
Changes | 0 |
1 | <?php |
||
7 | class ForumTopic extends Resource |
||
8 | { |
||
9 | public ?string $title = null; |
||
10 | public ?string $topic_poster_name = null; |
||
11 | public ?string $title_qualify = null; |
||
12 | |||
13 | public function __construct($obj) |
||
14 | { |
||
15 | parent::__construct($obj->thread_id, RESOURCE_FORUMTOPIC); |
||
16 | $this->obj = $obj; |
||
17 | |||
18 | $this->title = (string)($obj->thread_title ?? $obj->title ?? ''); |
||
19 | $this->topic_poster_name = (string)($obj->thread_poster_name ?? $obj->topic_poster_name ?? ''); |
||
20 | $this->title_qualify = (string)($obj->thread_title_qualify ?? $obj->title_qualify ?? ''); |
||
21 | } |
||
22 | |||
23 | public function show() |
||
39 | } |
||
40 | } |
||
41 |