PubDev::getName()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 2
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
eloc 1
nc 1
nop 0
dl 0
loc 2
rs 10
c 0
b 0
f 0
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