Conditions | 2 |
Paths | 2 |
Total Lines | 18 |
Code Lines | 8 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
19 | public function __construct( |
||
20 | $id, |
||
21 | $headline, |
||
22 | $text, |
||
23 | $date, |
||
24 | $image, |
||
25 | $image_id, |
||
26 | $user |
||
27 | ) { |
||
28 | $this->id = $id; |
||
29 | $this->headline = $headline; |
||
30 | $this->text = $text; |
||
31 | $this->date = $date; |
||
32 | $this->user = $user; |
||
33 | $this->image_id = $image_id; |
||
34 | |||
35 | if ($image != null) { |
||
36 | $this->image = $GLOBALS['news_images_path'].$image; |
||
37 | } |
||
76 |