Interview::getUser()   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\Interview;
3
4
require_once __DIR__."/../../../lib/functions.php";
5
6
/**
7
 * Maps to the `interview_main` and `interview_text` tables
8
 */
9
class Interview {
10
    private $id;
11
    private $intro;
12
    private $date;
13
    private $user;
14
    private $individual;
15
16
    public function __construct($id, $intro, $date, $user, $individual) {
17
        $this->id = $id;
18
        $this->intro = $intro;
19
        $this->date = $date;
20
        $this->user = $user;
21
        $this->individual = $individual;
22
    }
23
24
    public function getId() {
25
        return $this->id;
26
    }
27
28
    public function getIntro() {
29
        return $this->intro;
30
    }
31
32
    public function getDate() {
33
        return $this->date;
34
    }
35
36
    public function getUser() {
37
        return $this->user;
38
    }
39
40
    public function getIndividual() {
41
        return $this->individual;
42
    }
43
44
    /**
45
     * @return string The HTML text for the intro
46
     */
47
    public function getIntroHtml() {
48
        return InsertALCode(RemoveSmillies($this->intro));
49
    }
50
}
51