Total Complexity | 10 |
Total Lines | 41 |
Duplicated Lines | 0 % |
Changes | 0 |
1 | <?php |
||
7 | class GameReleaseScan { |
||
8 | private $id; |
||
9 | private $game_release_id; |
||
10 | private $type; |
||
11 | private $notes; |
||
12 | private $image; |
||
13 | private $file; |
||
14 | |||
15 | public function __construct($id, $game_release_id, $type, $imgext, $notes) { |
||
16 | $this->id = $id; |
||
17 | $this->game_release_id = $game_release_id; |
||
18 | $this->type = $type; |
||
19 | $this->notes = $notes; |
||
20 | |||
21 | if ($imgext && $imgext !== "") { |
||
22 | $this->image = $GLOBALS['game_release_scan_path']."{$id}.{$imgext}"; |
||
23 | } |
||
24 | |||
25 | if ($imgext && $imgext !== "") { |
||
26 | $this->file = $GLOBALS['game_release_scan_save_path']."{$id}.{$imgext}"; |
||
27 | } |
||
28 | } |
||
29 | |||
30 | public function getId() { |
||
31 | return $this->id; |
||
32 | } |
||
33 | |||
34 | public function getImage() { |
||
36 | } |
||
37 | |||
38 | public function getFile() { |
||
39 | return $this->file; |
||
40 | } |
||
41 | |||
42 | public function getType() { |
||
43 | return $this->type; |
||
44 | } |
||
45 | |||
46 | public function getNotes() { |
||
48 | } |
||
49 | } |
||
50 |