Interview   A
last analyzed

Complexity

Total Complexity 7

Size/Duplication

Total Lines 40
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
eloc 17
dl 0
loc 40
rs 10
c 0
b 0
f 0
wmc 7

7 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 6 1
A getId() 0 2 1
A getIntro() 0 2 1
A getIntroHtml() 0 2 1
A getDate() 0 2 1
A getUser() 0 2 1
A getIndividual() 0 2 1
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