PubDev   A
last analyzed

Complexity

Total Complexity 7

Size/Duplication

Total Lines 33
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
eloc 15
dl 0
loc 33
rs 10
c 0
b 0
f 0
wmc 7

5 Methods

Rating   Name   Duplication   Size   Complexity  
A getName() 0 2 1
A __construct() 0 10 3
A getId() 0 2 1
A getImage() 0 2 1
A getProfile() 0 2 1
1
<?php
2
namespace AL\Common\Model\PubDev;
3
4
/**
5
 * Maps to the `pub_dev` table
6
 */
7
class PubDev {
8
    private $id;
9
    private $name;
10
    private $profile;
11
    private $image;
12
13
    public function __construct($id, $name, $profile, $imageext) {
14
        $this->id = $id;
15
        $this->name = $name;
16
17
        if ($profile != '') {
18
            $this->profile = $profile;
19
        }
20
21
        if ($imageext != null) {
22
            $this->image = $GLOBALS['company_screenshot_path'].'/'.$id.'.'.$imageext;
23
        }
24
    }
25
26
    public function getId() {
27
        return $this->id;
28
    }
29
30
    public function getName() {
31
        return $this->name;
32
    }
33
34
    public function getProfile() {
35
        return $this->profile;
36
    }
37
38
    public function getImage() {
39
        return $this->image;
40
    }
41
}
42