Completed
Push — master ( c2be97...312fc5 )
by Stephen
02:08
created

Post   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 18
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Importance

Changes 1
Bugs 0 Features 0
Metric Value
wmc 2
c 1
b 0
f 0
lcom 0
cbo 0
dl 0
loc 18
rs 10

1 Method

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 6 2
1
<?php
2
namespace StarCitizen\Models;
3
4
/**
5
 * Class Post
6
 *
7
 * @package StarCitizen\Models;
8
 */
9
class Post
10
{
11
    public  $post_time;
12
    public  $last_edit_time;
13
    public  $post_text;
14
    public  $signature;
15
    public  $post_id;
16
    public  $thread_id;
17
    public  $thread_title;
18
    public  $permalink;
19
20
    public function __construct($postdData)
21
    {
22
        foreach ($postdData as $key => $value) {
23
            $this->$key = $value;
24
        }
25
    }
26
}