Thread   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 23
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Test Coverage

Coverage 100%

Importance

Changes 2
Bugs 0 Features 1
Metric Value
wmc 2
lcom 0
cbo 1
dl 0
loc 23
ccs 4
cts 4
cp 1
rs 10
c 2
b 0
f 1

1 Method

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 6 2
1
<?php
2
namespace StarCitizen\Models;
3
4
/**
5
 * Class Thread
6
 *
7
 * @package StarCitizen\Models
8
 */
9
class Thread extends Model
10
{
11
    public $thread_title;
12
    public $thread_id;
13
    public $thread_replies;
14
    public $thread_views;
15
    public $original_poster=[];
16
    public $original_post = [];
17
    public $recent_poster = [];
18
    public $recent_post;
19
20
    /**
21
     * Thread constructor.
22
     *
23
     * @param $threadData
24
     */
25 4
    public function __construct($threadData)
26
    {
27 4
        foreach ($threadData as $key => $value) {
28 4
            $this->$key = $value;
29
        }
30
    }
31
}